Search Boardgames!
Input your requirements to search for board games that match your criteria.
{ gameStore.removeAll(); data.append('limit', pageSize.toString()); data.append('skip', Math.floor(page * pageSize).toString()); boredState.update((n) => ({ ...n, loading: true })); return async ({ result }) => { boredState.update((n) => ({ ...n, loading: false })); console.log('result main page search', result); // `result` is an `ActionResult` object if (result.type === 'success') { console.log('In success'); const resultGames = result?.data?.games; if (resultGames?.length <= 0) { toast.send('No results found 😿', { duration: 3000, type: ToastType.ERROR, dismissible: true }); } gameStore.addAll(resultGames); totalItems = result?.data?.totalCount; console.log(`Frontend base page: ${JSON.stringify(result)}`); await applyAction(result); } else { console.log('Invalid'); await applyAction(result); } }; }} >
Or pick a random game!