Open nozomione opened 4 months ago
Resource: Next.js: Migrate routing hooks, Vercel: Context API with Next.js Currently, the following UI components are shared globally and rendered in the Layout component for the page router:
Layout
page
Band
ParticlesBg
BackToTopButton
Header
GlobalNav
GithubAnchor
LogoAnchor
NavDropDown
NavIcon
NavLink
Footer
Notification
PageTitle
In this issue, we want to render Band in the root layout of the app router.
app
We'll also need to migrate the routing hook useRouter and adjust the BandContext provider which is used to render the correct band for each route.
useRouter
BandContext
As stated above, refactor the Band component and render it in the root layout of the app router.
Context
Resource: Next.js: Migrate routing hooks, Vercel: Context API with Next.js Currently, the following UI components are shared globally and rendered in the
Layout
component for thepage
router:Band
ParticlesBg
BackToTopButton
Header
GlobalNav
GithubAnchor
LogoAnchor
NavDropDown
NavIcon
NavLink
Footer
Notification
PageTitle
In this issue, we want to render
Band
in the root layout of theapp
router.We'll also need to migrate the routing hook
useRouter
and adjust theBandContext
provider which is used to render the correct band for each route.Problem or idea
As stated above, refactor the
Band
component and render it in the root layout of theapp
router.Solution or next step
Band
andBandContext
, and adjust the sub-component as necessaryapp
folder