Comments (3)
Thanks, the context provider is in _app.tsx, as you can see here : at MyApp (webpack-internal:///./pages/_app.tsx:25:18)
I guess there is something with next 12 compatibility :) I'll try to upgrade
from next-hubspot.
- Context Providers should be added to the
_app
file and not to the_document
- Support for Next.js version before 13 is not guaranteed
Context providers are used to manage global state or authentication state that needs to be accessed by various components across different pages. Placing them in the _app.js
file ensures that they are initialized once and are available to all pages in your application.
Context providers are not typically added to the _document.js
file because the _document
is only concerned with the initial server render and the static HTML structure. Context providers, being components that manage state, are more relevant to the client-side rendering and need to be part of the React component tree, which is managed by the _app
file for global application state.
from next-hubspot.
Relevant docs:
https://nextjs.org/docs/pages/building-your-application/routing/custom-app
from next-hubspot.
Related Issues (8)
- Improve Hubspot types
- Next.js 13 app directory support HOT 7
- Enable SSR for Hubspot Forms HOT 2
- How to disable tracking or cookies dropped by hubspot? HOT 1
- Form not rendering with Next.js 14.0.1 HOT 10
- Two seperate forms can't be loaded twice on the same page, only one is shown? HOT 1
- Configuration option for region is not included in HubspotFormProps HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-hubspot.