commit 68aa1e9ece96ced961a03a4f3e72d2c354386d60 parent c35b3be7957a90bd1e861c0502736aa1eb7acfbf Author: Florian Dold <florian.dold@gmail.com> Date: Sat, 31 Aug 2019 17:41:31 +0200 don't always re-run effect Diffstat:
| M | src/webex/pages/pay.tsx | | | 2 | +- |
| M | src/webex/pages/refund.tsx | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/webex/pages/pay.tsx b/src/webex/pages/pay.tsx @@ -53,7 +53,7 @@ function TalerPayDialog({ talerPayUri }: { talerPayUri: string }) { setPayStatus(p); }; doFetch(); - }); + }, [numTries]); if (!payStatus) { return <span>Loading payment information ...</span>; diff --git a/src/webex/pages/refund.tsx b/src/webex/pages/refund.tsx @@ -49,7 +49,7 @@ function RefundStatusView(props: { talerRefundUri: string }) { } }; doFetch(); - }); + }, []); console.log("rendering");