Don't render the active client app screen until the router is loaded to avoid a wasted render
This commit is contained in:
parent
502a3bd8eb
commit
bca6f34959
|
@ -20,8 +20,10 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Ensure to fully remount when screen changes -->
|
<!-- Ensure to fully remount when screen changes -->
|
||||||
{#key screenDefinition?._id}
|
{#if $routeStore.routerLoaded}
|
||||||
<Provider key="url" data={params}>
|
{#key screenDefinition?._id}
|
||||||
<Component isScreen instance={screenDefinition} />
|
<Provider key="url" data={params}>
|
||||||
</Provider>
|
<Component isScreen instance={screenDefinition} />
|
||||||
{/key}
|
</Provider>
|
||||||
|
{/key}
|
||||||
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue