Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not throw button render errors when ref is invalid #88

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

gregjopa
Copy link
Contributor

This PR attempts to limit rendering errors related to the Buttons container being removed before async rendering completes. It's inspired by this PR for the zoid react driver that ships with the JS SDK: krakenjs/zoid#335.

Related: #85

@gregjopa gregjopa requested a review from a team as a code owner March 11, 2021 04:05
@gregjopa gregjopa force-pushed the update-render-error-strategy branch from 9064e74 to 685ef5e Compare March 11, 2021 04:06
@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #88 (685ef5e) into main (4e2af7c) will decrease coverage by 0.69%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   92.72%   92.03%   -0.70%     
==========================================
  Files           3        3              
  Lines         110      113       +3     
  Branches       33       34       +1     
==========================================
+ Hits          102      104       +2     
- Misses          8        9       +1     
Impacted Files Coverage Δ
src/components/PayPalButtons.tsx 92.00% <75.00%> (-1.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e2af7c...685ef5e. Read the comment docs.

@gregjopa gregjopa merged commit 552d6b9 into main Mar 11, 2021
@gregjopa gregjopa deleted the update-render-error-strategy branch March 11, 2021 04:33
@gregjopa
Copy link
Contributor Author

This empty container check was also needed: b85932b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant