We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929afe6 commit 9d64a57Copy full SHA for 9d64a57
examples/aff/src/AffEx.purs
@@ -15,9 +15,10 @@ import React.Basic.Hooks.ResetToken (useResetToken)
15
mkAffEx :: CreateComponent {}
16
mkAffEx = do
17
component "AffEx" \props -> React.do
18
+ let id = 0 -- pretend this is a prop
19
resetToken /\ reset <- useResetToken
- r1 <- useAff resetToken delayedSuccess
20
- r2 <- useAff resetToken delayedFailure
+ r1 <- useAff (id /\ resetToken) delayedSuccess
21
+ r2 <- useAff (id /\ resetToken) delayedFailure
22
23
pure $ fragment
24
[ R.button
0 commit comments