Skip to content

Commit

Permalink
Simplify isExpired (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
miuirussia authored Apr 11, 2024
1 parent 2a0b598 commit 7c85104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/React/Basic/Hooks/Suspense/Store.purs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mkSuspenseStore ::
mkSuspenseStore defaultMaxAge backend = do
ref <- Ref.new Map.empty
let
isExpired maxAge now' (_ /\ d) = unInstant now' < unInstant d <> maxAge
isExpired maxAge now' (_ /\ savedTime) = unInstant savedTime <> maxAge < unInstant now'

pruneCache = do
case defaultMaxAge of
Expand Down

0 comments on commit 7c85104

Please sign in to comment.