3

Redux!!
Is there any way to update the store and not change the view of UI?

Comments
  • 1
    No. Unless you invent some hack
    You shouldn't even want to do that. Keeping stores and views in sync is the whole point
  • 1
    What’s your use case exactly?
  • 0
    @Froot are you sure?
  • 0
    @zshh just want to store some data which will not invoke render of UI
  • 1
    @kirodian Why not just keep it in a good old variable?
  • 0
    @Froot hmm.. cool
  • 0
    @kirodian if you could explain your use case more maybe someone can let you know how/if how to do it
  • 0
    Well if you use React it will not touch the DOM if the variable is not bound/used to any component.

    I'm quite sure that's not what you meant though... You want to do something the framework is not made for.

    Declarative programming creates a view for every state. Skipping a state is going against the paradigm.
Add Comment