-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
panicked at 'called Option::unwrap()
on a None
value' > /packages/core/src/scopes.rs:172:48
#179
Comments
@jkelleyrtp I think this is the error I was seeing yesterday. @t1m0t Can you try the latest HEAD? I think this may already be fixed. |
@autarch I'm on the master branch and did |
Can you save the code that triggered this in a branch somewhere? Getting an error with unwrap here means the diffing algorithm scheduled a node for deletion even if it was still active, which shouldn't be happening. |
I'll have to figure it out.
|
Perhaps? It's always a good idea to put your keys in anyways, and I think the traceback (if you hunt for it) should tell you which line of code is causing the error. The Router pushes the diffing algorithm in a weird way since it sees nodes but can't distinguish if the current scope created them, or some parent. I think it has something to do with memoization in these nested chains. Introduced by #67 |
My issue is that I pass several children in a parent Element ( This would force us to find another way. Avoid using children anti pattern for a complex structure is doable, ain't it? What would be the alternative pattern then? In vuejs, this kind of children pattern is named |
The intention is that this feature works :) Getting it right is somewhat difficult because everything is a self-referential structure. If you have a minimal repro I could start there and add some more test coverage to fix the issue. We have a few tests covering children elements already, but I guess they're not complex enough to catch the failing cases. |
After clicking to trigger
push_route
, I get this runtime error.panicked at 'called
Option::unwrap()
on aNone
value', /home/user/packages/core/src/scopes.rs:172:48Looks like we should handle the
None
variant here.Environment:
The text was updated successfully, but these errors were encountered: