Giter VIP home page Giter VIP logo

Comments (4)

darklow avatar darklow commented on July 4, 2024

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.

luisvinicius167 avatar luisvinicius167 commented on July 4, 2024

@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.

darklow avatar darklow commented on July 4, 2024

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.

luisvinicius167 avatar luisvinicius167 commented on July 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.