You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<PayPalButtonscreateSubscription={function(data,actions){// will never have the up to date value. always the value when first rendered.console.log(props)}}/>
🤔 Expected Behavior
createSubscription prop should act like a normal function in which a new version of it is set on every render
🌍 Environment
Node.js/npm: any
OS: - osx
Browser: - chrome latest
The text was updated successfully, but these errors were encountered:
Library used
react-paypal-js
🐞 Describe the Bug / Minimal Reproduction
🤔 Expected Behavior
createSubscription prop should act like a normal function in which a new version of it is set on every render
🌍 Environment
The text was updated successfully, but these errors were encountered: