gregrickaby / nextjs-wordpress

💀 It's headless WordPress!
https://nextjswp.com
MIT License
254 stars 54 forks source link

Create <WordPressProvider /> Component to House Context #37

Closed gregrickaby closed 2 years ago

gregrickaby commented 2 years ago

I feel like global-y things like Menus, Settings, SEO, etc... should be managed in a new <WordpressProvider /> component, rather than passed down by every query.

gregrickaby commented 2 years ago

Because I removed Tailwind, I might as well spin up a provider as part of #26. Less to juggle!

leonlafa commented 2 years ago

I feel like global-y things like Menus, Settings, SEO, etc... should be managed in a new <WordpressProvider /> component, rather than passed down by every query.

Yeah, I agree, this would be a better solution.