examples
examples copied to clipboard
qwik: api/dinosaurs routes defined but not called from anywhere
Seems data is not loaded from backend api, it loaded from json file directly.
For example:
https://github.com/denoland/examples/blob/main/with-qwik/src/routes/index.tsx:
import data from "~/data/dinosaurs.json" with { type: "json" };
export const useDinosaurs = routeLoader$(() => {
return data;
});