chore: lint

This commit is contained in:
MiniDigger | Martin 2024-08-17 17:06:26 +02:00
parent ff6dd7c8fc
commit 5834e94286

View File

@ -123,7 +123,7 @@ export function useData<T, P extends Record<string, unknown> | string>(
// load initial state
data.value = state.value[key(params())];
// if we have no state, queue a load
if (data.value == undefined) {
if (data.value === undefined) {
promise = load(params());
// if on server (and we dont wanna skip server fetching, we need await the promise onServerPrefetch)