You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing objects from Server Components to Client Components that contain e.g. a Date you get following Warning:
Warning: Only plain objects can be passed to Client Components from Server Components. Date objects are not supported.
{createdAt: Date}
^^^^
The corresponding data in the Client Component would than be a stringified version of the object. This is arguably worse than Next.js 12 throwing an error.
The text was updated successfully, but these errors were encountered:
When passing objects from Server Components to Client Components that contain e.g. a Date you get following Warning:
The corresponding data in the Client Component would than be a stringified version of the object. This is arguably worse than Next.js 12 throwing an error.
The text was updated successfully, but these errors were encountered: