examples icon indicating copy to clipboard operation
examples copied to clipboard

qwik: api/dinosaurs routes defined but not called from anywhere

Open d9k opened this issue 1 year ago • 0 comments

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;
});

d9k avatar Feb 17 '25 19:02 d9k