one icon indicating copy to clipboard operation
one copied to clipboard

Docs should mention loader behavior on native platforms

Open ceopaludetto opened this issue 10 months ago • 1 comments
trafficstars

Docs should mention how loaders behave on native platforms in comparison to web.

They only run in build time or they work similarly to SSR? I think newcomers expect a similar behavior to remix/react-router loaders. What you think?

ceopaludetto avatar Jan 07 '25 12:01 ceopaludetto

Yep, something we need to do. The way they work currently should be similar to web:

  • ssg happens at compile-time and is included in the bundle
  • ssr happens on load and fetches from the server each time
  • spa happens on load and fetches from the server each time

but honestly need to verify this more thoroughly alongside adding tests and documenting.

natew avatar Jan 09 '25 04:01 natew

Added docs to the site!

natew avatar Aug 14 '25 19:08 natew