Skip to content
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

loading and error fails to work #19

Open
t9fiction opened this issue Jan 4, 2023 · 1 comment
Open

loading and error fails to work #19

t9fiction opened this issue Jan 4, 2023 · 1 comment

Comments

@t9fiction
Copy link

The folloing
error.tsx and loading.tsx fails and gives the following error

Unhandled Runtime Error
1 of 1
Error: Functions cannot be passed directly to Client Components because they're not serializable.
<... parallelRouterKey=... segmentPath=... error={function} errorStyles=... loading=... loadingStyles=... hasLoading=... template=... templateStyles=... notFound=... notFoundStyles=... childProp=... rootLayoutIncluded=...>
^^^^^^^^^^

@t9fiction
Copy link
Author

Just found out the solution.

"use client";

check this out

@t9fiction t9fiction reopened this Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant