-
Notifications
You must be signed in to change notification settings - Fork 53
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
Port to Next.js 15 #341
Port to Next.js 15 #341
Conversation
64bb20b
to
427ff5c
Compare
Do we care? |
src/app/installers.tsx
Outdated
desktop: selectors.isDesktop, | ||
mobile: selectors.isMobile, | ||
}; | ||
if (typeof window !== "undefined") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting a "runtime error" calling out this exact line, but I don't know how to disable SSR on 15...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 1 says "use client", shouldn't that be sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the added line under this... :)
I thought so too, and I wish - but apparently, no. It's still "prerendered" unless I set { ssr: false }
upon import, which is now only supported from other client components...?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you go into Firefox preferences and disable PerformanceObserver (set dom.enable_performance_observer to false in about:config), does the website work? |
It does, yeah. |
I would appreciate a lot if you could help finish this up sometime, @danielhjacobs - this is already a bit beyond my web and TS capabilities... 😶 |
d6ad854
to
5d1cb9d
Compare
3b40fc2
to
97c02ae
Compare
97c02ae
to
db39470
Compare
Oh, it's this: mantinedev/mantine#7008 But I'd leave it up to you, @danielhjacobs, to decide what to do about it. |
c7b0b6f
to
3f69baa
Compare
Do we even use the color scheme for anything? We always show ruffle-orange on ruffle-blue. |
Change this line: ruffle-rs.github.io/src/app/layout.tsx Line 33 in de73a08
To: <html lang="en" suppressHydrationWarning> https://react.dev/reference/react-dom/hydrate#suppressing-unavoidable-hydration-mismatch-errors Note, this only "works one level deep", so the only mismatch this will allow is on the html tag itself. That seems acceptable. |
Honestly, I'm not even sure whether |
Looking at the code, it seems like we just use MantineProvider as an easier way to manage our theme colors by putting them all in https://github.com/ruffle-rs/ruffle-rs.github.io/blob/master/src/theme.ts |
3f69baa
to
6fc34dd
Compare
6fc34dd
to
9459f4d
Compare
9459f4d
to
01e1e03
Compare
Thank you again, @danielhjacobs! 🥳 |
No description provided.