Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 900b926

Browse files
authoredApr 10, 2024
Simplify isExpired
1 parent 2a0b598 commit 900b926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/React/Basic/Hooks/Suspense/Store.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mkSuspenseStore ::
3838
mkSuspenseStore defaultMaxAge backend = do
3939
ref <- Ref.new Map.empty
4040
let
41-
isExpired maxAge now' (_ /\ d) = unInstant now' < unInstant d <> maxAge
41+
isExpired maxAge now' (_ /\ savedTime) = unInstant savedTime <> maxAge < unInstant now'
4242

4343
pruneCache = do
4444
case defaultMaxAge of

0 commit comments

Comments
 (0)
Please sign in to comment.