Paypal-checkout-components: [Bug] React driver throws deprecation warning in StrictMode

Created on 8 Oct 2020  路  6Comments  路  Source: paypal/paypal-checkout-components

馃悶 Describe the Bug

I use the code from here as a sample
https://github.com/paypal/paypal-checkout-components/blob/master/demo/react.htm

But I got the error report with content:

findDOMNode is deprecated in StrictMode

image

馃 Expected Behavior

Should not have an error report

馃實 Environment

  • Browser version: - Chrome
  • OS version: - MackOS
  • SDK version (window.paypal.version): -
Stale 馃悶 bug

All 6 comments

Issue-Label Bot is automatically applying the label 馃悶 bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Hi @dotku to get around this warning you can use useRef() instead of the zoid react driver.

Also, we just released a react library to simplify this style of integration: https://github.com/paypal/react-paypal-js.

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webdeb picture webdeb  路  3Comments

domtripodi picture domtripodi  路  5Comments

PhilibertDugas picture PhilibertDugas  路  5Comments

i7eo picture i7eo  路  3Comments

VivekVikranth picture VivekVikranth  路  6Comments