Closed
Description
Bug report
SWRConfig is used for top class components (e.g. layout), but the component SWRConfig
is not defined as the Client Components.
Therefore, developer have to write "use client"
, which makes all components in the layout as Client Components.
Description / Observed Behavior
Server Error
TypeError: react.createContext is not a function
Expected Behavior
Therefore, the developer must write "use client"
, which makes all components in the layout client components.
Additional Context
swr: 1.3.0
next: 13.0.2
Metadata
Metadata
Assignees
Labels
No labels