Skip to content

Is it not possible to use the provide_context function within the shell function? #3399

Answered by gbj
frugality4121 asked this question in Q&A
Discussion options

You must be logged in to vote

The shell only runs on the server, so it won't be provided in the client, which is where you're trying to consume it in ThemeToggle. Why not provide it in App instead (and use the <Html/> component from leptos_meta to set it on the <html> tag)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frugality4121
Comment options

Answer selected by frugality4121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants