Skip to content
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

Docs should mention loader behavior on native platforms #379

Open
ceopaludetto opened this issue Jan 7, 2025 · 1 comment
Open

Docs should mention loader behavior on native platforms #379

ceopaludetto opened this issue Jan 7, 2025 · 1 comment

Comments

@ceopaludetto
Copy link

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?

@natew
Copy link
Collaborator

natew commented Jan 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants