Skip to content

Commit

Permalink
enhance(client): suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored and Johann150 committed Jul 19, 2022
1 parent 8ed288c commit 1477cb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ You should also include the user name that made the change.
- Server: Ensure temp directory cleanup @Johann150
- favicons of federated instances not showing @syuilo
- Client: fix switch to receive email notifications @syuilo
- Client: Page freezes when trying to open configuration page of existing webhooks @syuilo

## 12.111.1 (2022/06/13)

Expand Down
8 changes: 7 additions & 1 deletion packages/client/src/components/global/router-view.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<template>
<KeepAlive :max="defaultStore.state.numberOfPageCache">
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>
<Suspense>
<component :is="currentPageComponent" :key="key" v-bind="Object.fromEntries(currentPageProps)"/>

<template #fallback>
Loading...
</template>
</Suspense>
</KeepAlive>
</template>

Expand Down

0 comments on commit 1477cb5

Please sign in to comment.