nitedani

Results 66 comments of nitedani

Different implementation for server and client: node/hooks/useNavigate client/hooks/useNavigate On the server: - If the headers are already sent(assuming streaming is enabled), the injected navigation script sets window.location.href - If the...

> An idea: we could build that streaming logic into Vike core, so that users can directly use `throw redirect()` instead of using `useNavigation()`. But it would complexify Vike core...

> Actually there is: when fetching some data `/product/123` inside a component but no product `123` exists and the user should be redirected to `/product/new`. Maybe something like this? I...

We can store extra needed info under the `vike-eject` key in each extension. ```json // package.json "vike-eject": { "exports": { "./something" : "./src/something.ts" }, "repo": "https://github.com/vikejs/vike-react/tree/main/packages/vike-react-query" } ``` User runs...

>The main issue is basically that I need to have the URL available to even find the package.json of the extension. You can use require.resolve or import.meta.resolve to get the...

I think Rolldown should support disabling splitting through an explicit option. It advertises itself as something similar to esbuild, and esbuild allows this.

CI error is weird, not caused by this PR I think. It’s random.

I've checked and they don't seem to support this. They don't call transformIndexHtml at all. To make it work, there is a custom implementation for vite-pwa for every supported framework:...

> I'm working on a full react-query integration to make this and all other nice features available in Rakkas. Until then you can use, e.g., `useQuery(JSON.stringify(["my", "array", "key"]), () =>...