Hard to get a stack trace #2749
Replies: 3 comments 3 replies
-
Thanks for opening a discussion. Maybe not related, but we have an old issue in the past: #931 |
Beta Was this translation helpful? Give feedback.
-
Not sure, in recoil I would get something looking like this when stopping with a
So I could trace it all the way up the tree. I don't get that with jotai for some reason or other I don't think that one is related, I saw it before, but maybe should look again |
Beta Was this translation helpful? Give feedback.
-
I think there're lots of anonymous function in jotai source code, wonder if we repalce with the normal function? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am having a bit of a nasty bug where the inputted parameter does not adhere to the value in the state.
In recoil I could just put a
debugger
line inside aif
statement in theatomFamily
that is called with the inconsistent values and look at the stack trace in my dev tool to find the correct path.In Jotai this is not possible
Apologies for the swedish text, but I guess you can see the issue. The stack trace should be several layers, but it is only 2 functions deep, which is strange to me. In fact, the
App.tsx
is not even calling theatomFamily
infeatures.tsx
Is it possible to fix this?
Beta Was this translation helpful? Give feedback.
All reactions