Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

use_context value can get lost when rendering a list of components #785

Unanswered
Archmonger asked this question in Problem
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Archmonger
Jul 9, 2022
Maintainer Author

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.

You must be logged in to vote
1 reply
Comment options

Sunday morning or early afternoon would work for me again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /