-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation refresh the store, but the web-components using derived does not receive the new value. #458
Comments
Looks that the store entry is diferent: |
No that is a typo simplifying the code for you. Real code is good. I fix the example code i wrote. Issue is there |
I think the problem is that you are not transferring after navigation, I recommend to transfer in each render, probably this code make more sense: if (!store.has('modal')) store.set('modal', false);
store.transferToClient(['modal']); // Transfer in each request Instead of: if (renderInitiator === 'INITIAL_REQUEST') {
store.set('modal', false);
store.transferToClient(['modal']);
} Otherwise, only if the navigation has a redirect for something, the transfer is lost. |
Tested again, seems to work now :/ Magic happened... |
closing issue |
Given the scenario:
And
After do a navigation the modal can't be open again. This seems because derived does not receive the updated value, and after navigation always remains in true.
Note: Tested with brisa 0.0.199.
This issue is different than: #454, but thanks to this fix, now we know this other happens.
The text was updated successfully, but these errors were encountered: