ITADN

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

#34Opend9k 创建于 2025-02-17
D
d9kcommented
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`: ```tsx import data from "~/data/dinosaurs.json" with { type: "json" }; export const useDinosaurs = routeLoader$(() => { return data; }); ```
0 条评论