mcansh/remix-fastify

useLoaderData parsing error

lu-zen opened this issue ยท 6 comments

Idk exactly whats going on, but useLoaderData can't parse my root loader json data after the first loading. It's serializable and works great with the official express runtime.

Returned loader data is identical btw, weird error.

Started to happen when I upgraded remix deps to 1.7.6

@mcansh I believe the problem is that headers are not being sent, check this discord entry where Jacob diagnosed the issue: https://discord.com/channels/770287896669978684/1047907012815618159

strange, apply headers here https://github.com/mcansh/remix-fastify/blob/main/packages/remix-fastify/src/server.ts#L108-L114 and if i log them i see them, but the browser isn't getting them, at least not all of them - perhaps because of reply.raw, oddly enough my json responses never broke ๐Ÿ˜…

edit: yep broke it here - 8d13fdd by fixing #48 ๐Ÿ˜…๐Ÿ˜…

A new error, outlet children is not being rendered.

@lu-zen please fill a new issue with more details

@lu-zen please fill a new issue with more details

im able to reproduce, but i have no idea how to fix it currently ๐Ÿ˜…

we're only getting a single chunk from the root route

but a new dedicated issue for this would be super