-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/PPPSYS-43233 server components support #20
Conversation
import {PageData} from '@/types/pageData' | ||
import CustomDimensionResults from '@/src/components/CustomDimensions/CustomDimensionResults' | ||
import Head from 'next/head' | ||
import utilStyles from '../../styles/utils.module.css' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In example/app/CustomEvent/page.tsx
file we have absolute import for CSS file, but here is a relative. Maybe we should keep one way to imports?
return ( | ||
<> | ||
<Head> | ||
<title>Piwik Pro - Nextjs 13 examples</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a small detail but should be "Piwik PRO" instead of "Piwik Pro" 😝
const eCommerceExamples: FunctionComponent = () => { | ||
const {eCommerce} = usePiwikPro() | ||
|
||
const [eCommerceItems, setECommerceInfo] = useState<any>('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two mismatch names "items" and "info" for the same state.
Updated all of the packages, must important: react, next, react-piwik-pro. Now able to use piwik pro in server components. Created new examples directory for next version >13
Task