Is your feature request related to a problem? Please describe.
I am using a few NPM packages like React-Query and Flagsmith that require your component to be wrapped up in a HOC. Say if you have 10 views, all of them have to be individually wrapped.
Describe the solution you'd like
Next.js has the notion of an _app.tsx or _document.tsx that are applied as HOC for every page. Any functionality common between pages goes there.
Describe alternatives you've considered
I've created a Layout component that is used on every view like so:
Is your feature request related to a problem? Please describe. I am using a few NPM packages like React-Query and Flagsmith that require your component to be wrapped up in a HOC. Say if you have 10 views, all of them have to be individually wrapped.
Describe the solution you'd like Next.js has the notion of an
_app.tsx
or_document.tsx
that are applied as HOC for every page. Any functionality common between pages goes there.Describe alternatives you've considered