Replies: 1 comment 3 replies
-
The answer is via context, and if context isn't working then more details are helpful. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to do this to avoid duplicating expensive computation/queries.-I tried doingprovide_context()
anduse_context()
and that didn't seem to work. But maybe I was holding it wrong? Even if I wasn't, it doesn't strike me as the most maintainable API to pass arguments to<Outlets />
...UPDATE: it turns out the issue is different from my initial framing. I've updated the title to reflect that. The below code panics at the
use_context()
line (here's a repo with the repro).I haven't articulated in this minimal repro why I want this sort of function nesting. I am trying to work around this issue by avoiding the need for the function nesting. But I thought it'd be good to update this issue with what actually was my issue to provide some closure (pun intended haha).
Beta Was this translation helpful? Give feedback.
All reactions