Skip to content

Commit 9d64a57

Browse files
committed
Add id to aff example
1 parent 929afe6 commit 9d64a57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/aff/src/AffEx.purs

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import React.Basic.Hooks.ResetToken (useResetToken)
1515
mkAffEx :: CreateComponent {}
1616
mkAffEx = do
1717
component "AffEx" \props -> React.do
18+
let id = 0 -- pretend this is a prop
1819
resetToken /\ reset <- useResetToken
19-
r1 <- useAff resetToken delayedSuccess
20-
r2 <- useAff resetToken delayedFailure
20+
r1 <- useAff (id /\ resetToken) delayedSuccess
21+
r2 <- useAff (id /\ resetToken) delayedFailure
2122

2223
pure $ fragment
2324
[ R.button

0 commit comments

Comments
 (0)