PatrickJS / qwik-ssg-csr-only

Qwik SSG->CSR only. no SSR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qwik SSG->CSR only. No SSR

example on how to do CSR only by using SSG->CSR with useResource and some of the qwik-city router features.

What you lose from SSR

  • server$
    • you have to make your own fetch wrappers
  • $routerLoader
    • you have to useResource with useVisibleTask$ example to load on new route
  • actions
    • you need a server for this anyways so you must use signals. Modular Forms does have a way to use signals-only

FAQ

  • CORS
    • add proxy in vite.config with changeOrigin to your api

About

Qwik SSG->CSR only. no SSR


Languages

Language:TypeScript 89.4%Language:JavaScript 10.6%