Search Boardgames!
Input your requirements to search for board game that match your criteria.
{ boredState.update((n) => ({ ...n, loading: true })); return async ({ result }) => { boredState.update((n) => ({ ...n, loading: false })); console.log(result); // `result` is an `ActionResult` object if (result.type === 'error') { toast.send('Error!', { duration: 3000, type: ToastType.ERROR, dismissible: true }); await applyAction(result); } else { gameStore.removeAll(); gameStore.addAll(result?.data?.games); totalItems = result?.data?.totalCount; console.log(`Frontend result: ${JSON.stringify(result)}`); toast.send('Sucess!', { duration: 3000, type: ToastType.INFO, dismissible: true }); await applyAction(result); } }; }} >
Or pick a random game!
{#if $gameStore?.length > 0}
Games Found:
{#each $gameStore as game (game.id)}
{/each}
console.log('Prev page called', event)} on:perPageEvent={(event) => console.log('Per page called', event)} />
{/if}