You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then setup redux-falcor as per README, then the redux store does not get set with this data.
After staring at your implementation for a while, I realised redux-falcor relies on the falcor onChange() method being invoked (to populate the redux store). This does not appear to get invoked as part of cache priming (or if it does, gets executed before redux-falcor monkey patches the handler)
I tested the theory by starting with an empty falcor cache and then setting the person key after 3 seconds (using setTimeout). Once I did it this way, the redux store got populated with my initial falcor dataset after the setTimeout executed.
Anyway, that aside, thanks for the library. I think redux-falcor does a really nice job of integrating falcor and redux.
The text was updated successfully, but these errors were encountered:
I'm in crunch mode right now at work and I'm not quite sure when I'll get a chance to look into this. But once I get some time on my hands I will try and fix for sure.
In the meantime if anyone wants to take a crack at this, I'm happy to review any and all PRs.
Hi,
I think there us an issue with redux-falcor. Essentially if you prime your falcor cache by doing something like this:
And then setup redux-falcor as per README, then the redux store does not get set with this data.
After staring at your implementation for a while, I realised redux-falcor relies on the falcor onChange() method being invoked (to populate the redux store). This does not appear to get invoked as part of cache priming (or if it does, gets executed before redux-falcor monkey patches the handler)
I tested the theory by starting with an empty falcor cache and then setting the person key after 3 seconds (using setTimeout). Once I did it this way, the redux store got populated with my initial falcor dataset after the setTimeout executed.
Anyway, that aside, thanks for the library. I think redux-falcor does a really nice job of integrating falcor and redux.
The text was updated successfully, but these errors were encountered: