Skip to content

Commit d6577c0

Browse files
authored
fix: be explicit about defaults in docs (#77)
* fix: be explicit about defaults in docs * add to react
1 parent adca324 commit d6577c0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/nextjs/docs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LOCATION: Wherever other providers are, or the components folder
1616
==============================
1717
Changes:
1818
- Create a PostHogProvider component that will be imported into the layout file.
19+
- Make sure to include the defaults: '2025-05-24' option in the init call.
1920
2021
Example:
2122
--------------------------------------------------
@@ -147,6 +148,7 @@ LOCATION: Wherever the root _app.${
147148
Changes:
148149
- Initialize PostHog in _app.js.
149150
- Wrap the application in PostHogProvider.
151+
- Make sure to include the defaults: '2025-05-24' option in the init call.
150152
151153
Example:
152154
--------------------------------------------------
@@ -251,6 +253,7 @@ Changes:
251253
language === 'typescript' ? 'ts' : 'js'
252254
} in any other file; Next.js will automatically handle it.
253255
- Do not modify any other pages/components in the Next.js application; the PostHog client will be automatically initialized and handle all pageview tasks on its own.
256+
- Make sure to include the defaults: '2025-05-24' option in the init call.
254257
255258
Example:
256259
--------------------------------------------------

src/react/docs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ LOCATION: Wherever the root of the app is
2424
==============================
2525
Changes:
2626
- Add the PostHogProvider to the root of the app in the provider tree.
27+
- Make sure to include the defaults: '2025-05-24' option in the init call.
2728
2829
Example:
2930
--------------------------------------------------

0 commit comments

Comments
 (0)