routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// Utilities
|
||||
import { onBeforeUpdate, ref } from 'vue';
|
||||
|
||||
// Types
|
||||
|
||||
export function useRefs() {
|
||||
const refs = ref([]);
|
||||
onBeforeUpdate(() => refs.value = []);
|
||||
function updateRef(e, i) {
|
||||
refs.value[i] = e;
|
||||
}
|
||||
return {
|
||||
refs,
|
||||
updateRef
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=refs.js.map
|
||||
Reference in New Issue
Block a user