SearchInputButton: Type is not assignable - Error
I get a Argument type Route | ReturnType<Router["resolve"]> | undefined is not assignable to parameter type RouteLocationRaw
error in IDE on searchText here.
Reason could be, that searchText.value
is set by watcher and not on initilization.
const doSearch = () => {
router.push(
localRoute({
path: "/search",
query: {
searchText: searchText.value
}
})
);
};
Edited by Gabriel Preuß