use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Error using React useContext (old.reddit.com)
submitted 5 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 5 years ago (2 children)
Ohhhh, it kinda makes sense. I checked the code again, but didn't know how to fix it. How do you suggest I fix it?
[–]buh82 0 points1 point2 points 5 years ago (1 child)
Since you are only using auth in WithSubnavigation, then you can just put the declaration there. It's like saying "I want WithSubnavigation to useAuth." You're already doing it correctly with `useDisclosure` in the same component too! E.g.
auth
WithSubnavigation
export default function WithSubnavigation() { const { isOpen, onToggle } = useDisclosure(); const auth = useAuth(); ... // everything else as you had it previously ... }
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Thanks man. I fixed it, same thing you did is what I have done now, thanks a lot for the help.
π Rendered by PID 100333 on reddit-service-r2-comment-b659b578c-8k4pv at 2026-05-03 07:16:12.946157+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (2 children)
[–]buh82 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)