Comments (4)
Looks like you want to force me to finally learn ECMAScript, so far I have successfully avoided it.
I'll take a look, but first I need to understand your examples.
I had no issues so far with current version :) Except maybe few times I wish there would be a way to prevent calling update to components, because not all actions do required update in the end. For example you do some kind of server-side check and realise data hasn't been changed, so why call update. But is a small thing.
from mockstate.
@darklow great! Yeah, shure! With this, you don't need update your component after called your action. You can do something, see: dispatch('actionName').then( data => { // do something with the data retorned of your action} )
.
from mockstate.
Is it possible to use new version with JavaScript only (VanillaJS)?
Before I was using riotux for small and medium sized apps, where I am not using any other dependencies like nodejs, babel etc. Because riotjs can be used standalone with pure JS it was great combination with past riotux versions. Really hope it will stay this way.
from mockstate.
@darklow Shure! You can just import the mockstate.min.js
on your Browser, that will export the Mockstate
Object, then you can use Mockstate.dispatch, Mockstate.setState...
from mockstate.
Related Issues (11)
- What is the reason having state name when calling action? HOT 1
- Subscribe handler not being called when performing multiple actions in parallel. HOT 7
- There are some problems that need to confirm HOT 2
- Actions being triggered multiple times HOT 2
- Cannot unsubscribe (el is undefined)
- Cannot provide multiple arguments for trigger method HOT 8
- Actions as store functions HOT 4
- Is it possible to have multiple stores? HOT 2
- Typos, naming and a question HOT 4
- Usage question on Actions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockstate.