-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Fix subscriptions for read only signals passed as props #3173
Conversation
I can confirm that this fixed my original problem. The secondary problem that I mentioned on the bug report, however, seems to have become worse, as now I get a panic -- that does not appear to be coming from my code:
|
@rogusdev without any way to reproduce the issue, there isn't much I can do to debug the second issue. Can you create a reproduction? |
I was hoping the stack trace would pop a lightbulb for you. If not, I support merging this as it is, because it is simple enough and does solve one problem. And then I will find a repro for the other thing. Thanks |
I misread the backtrace. We can just ignore subscriptions to dropped reactive contexts. I think the panic should be fixed, but I'm still not sure what is causing the missing subscriptions |
Your latest does indeed fix the panic and now I can use this! I may have found a repro for a reactive context dropped error, which may or may not be the same / related error. I will create that as a separate issue tho, as the original concerns I had seem to be resolved with these changes and would highly encourage them to get merged. |
All that said, the repro app I put in the issue does still give this warning (twice, immediately) when following the steps (click on 1 then click on 2) -- tho at least it now displays properly! Maybe that might help you investigate this better?
|
I am good for this getting merged but @ealmloff or @jkelleyrtp what should we do about that warning I'm getting now? The repro on the issue triggers it completely consistently. |
This PR fixes subscriptions being cleared after changing values that are converted to ReadOnlySignal at a component boundary. It also adds a fuzzing test for Rc generational box values
Fixes #3147