Files
speckle-server/packages/frontend-2/components/viewer/PostSetupWrapper.vue
T
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +03:00

15 lines
555 B
Vue

<template>
<slot />
</template>
<script setup lang="ts">
import { useViewerPostSetup } from '~~/lib/viewer/composables/setup/postSetup'
/**
* The only point of this component is to get around the stupid limitation where a component that injects() also can't provide() the same stuff back...
* So the Viewer root component should invoke `useSetupViewer()` to do all of the `injects()` and then this will invoke `useViewerPostSetup()` which
* will do extra setup that relies on the state being done and injectable.
*/
useViewerPostSetup()
</script>