<Preferences/> outside <Inbox/> error
Error: Component must be wrapped with NovuUIContext
Code:

11 Replies
Hey Russ
I will check this
Can you share the version of npm package?
I will check this
Can you share the version of npm package?
@Pawan Jain
"@novu/react": "2.6.6"
@Russ Salad
<Preferences />
component should be used inside of <Inbox />
component.
Can you share specific reasons of using it with <NovuProvider />The Preferences component is used to display the subscriber preferences. **Use it when you want to render preferences in another part of your application** or create a custom layout for the Inbox.
@Russ Salad, you just advanced to level 4!
| Novu Documentation
Learn how to use and customize the Preferences component in React to manage notification settings.
I want to have dedicated page for notification configs
@Russ Salad
Do you only want to use our pre-built component t
You can build a custom preference page using
usePreferences
hooks
This component should be wrapped in <NovuProvider />
NovuProvider | Novu Documentation
Learn how to use the NovuProvider component to set up the Novu context in your React application
@Pawan Jain
somehow it doesn't send the GET /preferences request
and the preferences are undefined
Not sure, I follow
Can you share the screenshot?
Can you share the screenshot?
@Russ Salad ping