experience loading speeded up (before con. load.)

This commit is contained in:
Ota Prokopec 2023-04-06 15:43:58 +02:00
parent 3af85de747
commit 181462fcaa
1 changed files with 5 additions and 2 deletions

View File

@ -29,14 +29,17 @@
view = 'experience-preview' view = 'experience-preview'
})*/ })*/
onMount(async () => { $: [gameData] = loadAsStore(params.gameurl)
$: if ($gameData) view = 'experience-preview'
/*onMount(async () => {
try { try {
$gameData = await load(params.gameurl) $gameData = await load(params.gameurl)
view = 'experience-preview' view = 'experience-preview'
} catch (error) { } catch (error) {
navigate('/error') navigate('/error')
} }
}) })*/
/*$: assets = $gameData?.questions /*$: assets = $gameData?.questions
?.filter((q) => q.thumbnail !== null) ?.filter((q) => q.thumbnail !== null)