added dynamic data loading and mapping towards components.

This commit is contained in:
Samuel Andert
2023-07-26 15:16:41 +02:00
parent 14aad071f4
commit 920e7b7ca1
6 changed files with 99 additions and 17 deletions

View File

@ -0,0 +1,9 @@
// queryTodos.ts
import { dataStore } from '$lib/core/dataLoader';
const queryTodos = [
{ name: "todo 1" },
{ name: "todo 2" }
];
dataStore.registerData('todos', queryTodos);