-
-
Notifications
You must be signed in to change notification settings - Fork 328
use_context value can get lost when rendering a list of components
#785
-
The title is fairly self-explanatory, but I haven't confirmed that's the exact cause. All I know is that I'm getting None when attempting to use use_context (via django_idom.hooks.use_websocket) for my list of sidebar tabs.
I think we should have a quick tag up for me to demo this issue. Since IDOM doesn't give a useful stack trace on exceptions like this, I'll need to walk you through the stack as well.
Let me know what your availability is.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
Replies: 1 comment 1 reply
-
This could also be due to conditional rendering (two return statements, one component).
I won't be available from the 13th to 20th of this month. Let me know if you have time before the 13th for me to demo.
Beta Was this translation helpful? Give feedback.
All reactions
-
Sunday morning or early afternoon would work for me again.
Beta Was this translation helpful? Give feedback.