routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// Utilities
|
||||
import { onMounted, readonly, shallowRef, toRef } from 'vue';
|
||||
|
||||
// Composables
|
||||
export function useSsrBoot() {
|
||||
const isBooted = shallowRef(false);
|
||||
onMounted(() => {
|
||||
window.requestAnimationFrame(() => {
|
||||
isBooted.value = true;
|
||||
});
|
||||
});
|
||||
const ssrBootStyles = toRef(() => !isBooted.value ? {
|
||||
transition: 'none !important'
|
||||
} : undefined);
|
||||
return {
|
||||
ssrBootStyles,
|
||||
isBooted: readonly(isBooted)
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=ssrBoot.js.map
|
||||
Reference in New Issue
Block a user