Skip to content

Commit 7c85104

Browse files
authored
Simplify isExpired (#73)
1 parent 2a0b598 commit 7c85104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)