#What is remixContext?

1 messages · Page 1 of 1 (latest)

unreal jewel
#

Could someone explain what context={remixContext} is? I've seen it used with "<RemixServer context={remixContext}..." but can't understand what it does. See it pop up in Page Source with a bunch of json data in it

tight helm
#

It's data remix uses to transition to client navigation. You can see that it goes away when you comment out <Scripts /> in roots.tsx (remember to add it back in after).

#

Remix works by initial document load as rendered html, then send the data and JavaScript to work like a classic SPA.