First render takes a long time after rebuild #7164
parsagholipour
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed when I make a change it takes a long time(about 10s) for the page to render for the first time although the build time is fast. After the first time it becomes normal.
I could fix it using the following method:
in my
root.tsx
I wrapped my whole app in aClientOnly
component.After it the load time is less than 1s.
What could be the reason and Is there a better workaround?
I have to also mention there's no request blocking.
version:
@remix-run/react: 1.17.1
node: 16
Beta Was this translation helpful? Give feedback.
All reactions