Skip to content

Commit

Permalink
chore: use UNDEFINED
Browse files Browse the repository at this point in the history
  • Loading branch information
taku-hatano committed Mar 15, 2024
1 parent e0eee7e commit 42f35b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const useSWRHandler = <Data = any, Error = any>(
// If it's a promise, we simply let React suspend and resolve it for us.
let fallback = isUndefined(fallbackData)
? isUndefined(config.fallback)
? undefined
? UNDEFINED
: config.fallback[key]
: fallbackData
if (fallback && isPromiseLike(fallback)) {
Expand Down

0 comments on commit 42f35b7

Please sign in to comment.