-
Notifications
You must be signed in to change notification settings - Fork 17
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
handle_params, push_patch & put_toast #9
Comments
Interesting... I will try to replicate but if there's any way you can provide a minimal repro it would help a lot. Thanks! |
tbh. I can't reproduce it on newest version ¯\ (ツ)/¯ |
ahh forgot it was from handle_params -> git patch with repro
|
I have a plan for how to fix this. It should be ready in a few days. |
So I have a branch that fully 'fixes' this issue. It is however quite complicated. It requires basically, on every call to That's a little janky, but testable and verifiable I guess. The bigger thing is it also requires passing said toast synchronously through params to the LC. That is a pretty big change that requires a lot to make work. It also means that the param most likely needs to be set to a temporary_assign. That's kind of a problem, cause whatever LV is mounted to the router would have to be responsible for that. We could however make a There is another alternative which is pretty simple: we can also just check the socket for the presence of the The final option is to just say well, if you want messages to work across navigates just use Like I said, I have a branch that kind of makes it all 'just work', but it's complicated. I think I need to test it more myself and make sure it doesn't add some crazy levels of jank. I can even push it up for others to try at some point soon. If it's not a suitable fix though I think I'll lean towards option two, which is literally a one line change and just requires you to change your user-space code a little bit. |
Thanks for detailed response, I prefer using |
Can we just auto-dismiss the flash after the redirect, after some number of seconds? |
@srcrip Is there any update on this? I didn't see the branch with the experimental fixes in this repo. |
Hey,
If I use put_toast with combination of push_patch in handle_params I do not have toast visible and it works with default put_flash, any ideas? Thanks, great lib btw :)
The text was updated successfully, but these errors were encountered: