Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Oct 8, 2024
1 parent f520e07 commit 92772dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function useLoader<R>({initial, ...options}: CacheOptions<R>): R {

useEffect(
() => {
if (initialRef.current === undefined) {
if (initialRef.current !== undefined) {
load();
}

Expand Down

0 comments on commit 92772dc

Please sign in to comment.