-
Notifications
You must be signed in to change notification settings - Fork 6
Prop style
did not match server
#531
Comments
@richardr1126 Thanks for reporting this. We'll try to reproduce this issue and update you on this. |
@surajahmed Thanks. I also ended up posting an issue to the Expo GitHub as well and they needed a minimal reproducible example. They ultimately said it was a problem with glue-stack and closed it. Here it is if this helps, https://github.com/richardr1126/expo-router-error-example |
Thanks @richardr1126. I'll have a look. |
Hey @richardr1126, This issue is from expo. We have commented on the same issue you have raised with expo. you can find our reply here. |
@Viraj-10 Thank you so much for finding the problem with the Expo router. After adding back in the font loading code to the |
I am using the Expo App Router with Gluestack UI. iOS and android aren't having many problems. But when launching my app on web, at first everything works fine, but if I try to refresh the page it crashes and I get the error
Prop 'style' did not match. Server: "max-width:-88px" Client: "max-width:1186px"
.When launched, by design, my app gets immediately redirected to "localhost:8081/one" which is a signup modal, this is where the error occurs if I refresh. The only way to get rid of the error is go to the base URL
localhost:8081/
which then redirects to "/one". When I create a production build for web I don't get this crashing error, but after refreshing the page if I was in dark mode, it goes back to light mode, indicating the styling is not carrying across routes when refreshed.When I initially launch on web through Expo I get the following warning about non-hydrated UI and the intended UI, which definitely is causing the problem:
This must either be a problem with gluestack-style or Expo App Router. I am new to using React Native so any tips would be very helpful.
I also get these warning when launching on web, but I am not sure how relevant they are to my problem:
The text was updated successfully, but these errors were encountered: