how to exclude a route from receive a provider that is defined on root layout (app root) #70230
Unanswered
yasmin-movingpay
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm working with Nextjs and have a root layout that includes a provider. I want this provider to be applied only to certain routes, specifically those within a "dashboard" section. I've tried placing the provider within the dashboard layout, but it seems like the provider isn't initializing properly.
Here’s what I’m trying to achieve:
Currently, I’ve added the provider within the dashboard layout, but it doesn’t seem to initialize as expected.
How can I configure this so that the provider is only applied to the routes under /dashboard/*?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions