Skip to content

Issue with reactor.loadState not updating all bindings #164

Closed
@tonytamps

Description

@tonytamps

I've got an issue where it seems like if I reactor.loadState inside a component, that component will no-longer receive updates for (some of?) it's bindings but child components still do.

Here is a JSFiddle replicating the issue.
https://jsfiddle.net/o8mths43/2/

Notes:

  • setTimeout at the top simulating an action to update the store.
    • It works fine if loadState isn't called before hand.
    • you can see the parent/child binding change in the rendered page.
  • prop1 binding is only updated in the child component after the loadState
  • prop2 is based on prop1 and is unable to get updated even when changing the value of prop1 after the loadState

I hope this is just me using loadState incorrectly. Have you come across this?

It's 6am and I'm not sure I'm making a lot of sense. Take a look and see if you can reason out what I'm getting at. Happy to answer more questions and explain if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions