We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e6996c commit 5f1392cCopy full SHA for 5f1392c
apps/builder/app/routes/_ui.tsx
@@ -77,7 +77,10 @@ export const clientLoader = async ({
77
serverLoader,
78
}: ClientLoaderFunctionArgs) => {
79
const serverData = await serverLoader<typeof loader>();
80
- console.log(serverData);
+ // client loader is invoked twice with server data and with null
81
+ if (!serverData) {
82
+ return;
83
+ }
84
85
if (clientCsrfToken === undefined) {
86
const { csrfToken } = serverData;
0 commit comments