Files
speckle-server/packages/frontend-2/components/viewer/StatePostSetup.vue
T
2025-09-18 13:59:28 +02:00

15 lines
604 B
Vue

<template>
<div class="viewer-core-post-setup h-full"><slot /></div>
</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>