Something went wrong. Try again.
A simple to-do app focused on tasks that can be completed within a specific time span. taskline.tobinio.dev
Something went wrong. Try again.
331 B · 15 lines
TypeScript
at main
12345678910111213141516export function useSelectedTodo() { const route = useRoute(); const localeRoute = useLocaleRoute();
return computed({ get: () => { return route.query.uuid as UUID | undefined; }, set: async (value) => { await navigateTo( localeRoute({ name: "index", query: { ...route.query, uuid: value } }), ); }, });}