remix-doc:
https://remix.run/docs/en/v1/guides/streaming
mui-remix-ts:
https://github.com/mui/material-ui/tree/master/examples/material-remix-ts
#What should I do to support remix streaming with mui?
1 messages · Page 1 of 1 (latest)
I haven't had much luck with it, tbh. I think it's a limitation of how Emotion works. It's been painful enough that I'm seriously considering moving entirely over to @mui/base + tailwind
Yes, I also encountered the problem of emotion in nextJs, so I turned to remix, but I didn't think it was as difficult to solve for me😩
Hi guys! Is there any update for that matter? I also cant make it work
such a game changer
Hi boys,look this.it seems useful.
https://github.com/remix-run/examples/blob/main/chakra-ui
Yes, this is working for me. I'm using MUI/emotion with React18 streaming. It was a bit cumbersome to hook up but it's working fine.
I've originally hooked mine up using @elder falcon 's repo https://github.com/jacob-ebey/remix-chakra
But this official remix example @jagged zephyr mentions above seems to be an extension of that.
@obsidian girder Mind sharing your example of adapting the above for MUI? I still get hydration errors.
I think I actually got it working; seems it complained about my dark reader a lot
Seems theme context is lost upon hitting an error boundary unfortunately, still figuring that one out.
Are you sure your hydration errors are due to MUI/emotion? They can happen for many other reasons (extensions like Grammarly for example in your browser). Though I got mine to work, I still get occasional hydration errors on some pages but they're not due to MUI/emotion...
They were I believe due to emotion but I did get that figured out. I still struggled with error boundaries losing theme context from the application and could not find a solution for that though