1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Key client layout component to ensure fully remounting when swapping layouts in the builder preview

This commit is contained in:
Andrew Kingston 2021-06-17 13:20:29 +01:00
parent 0867c98c43
commit 5a6a40a80c

View file

@ -65,7 +65,9 @@
>
<Provider key="user" data={$authStore} {actions}>
<div id="app-root">
<Component instance={$screenStore.activeLayout.props} />
{#key $screenStore.activeLayout._id}
<Component instance={$screenStore.activeLayout.props} />
{/key}
</div>
<NotificationDisplay />
<!-- Key block needs to be outside the if statement or it breaks -->