-
I have a component which renders a coupon. This coupon is only valid to a specific time. The problem is the select won't get called again unless I store something in the Store, but I don't want to store the current time. It also doesn't change the output because it's memoized. any ideas appreciated 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would only save a validUntil in the store and check if it's still valid in the component or set a timer in an effect and trigger an action when the coupon gets invalid. |
Beta Was this translation helpful? Give feedback.
I would only save a validUntil in the store and check if it's still valid in the component or set a timer in an effect and trigger an action when the coupon gets invalid.