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

Delays initialization on React #51

Merged
merged 3 commits into from Feb 21, 2023
Merged

Delays initialization on React #51

merged 3 commits into from Feb 21, 2023

Conversation

ekwoka
Copy link
Contributor

@ekwoka ekwoka commented Jan 22, 2023

Solves a portion of #21

This PR:

  • Refactors how the main widget package handles multiple calls to init using a store promise, allowing multiple calls to init to load only one instance while still having both "succeed" safely
  • Provides prop and makes adjustments to React context provider to allow delaying of the initialization with context value passthrough (or init overrides)

I couldn't get tests to work at all locally (not entirely sure the steps needed to even run them as the readme seemed incomplete) so those will need to be checked, and possibly additional tests added for this.

@Shard Shard self-requested a review February 21, 2023 02:52
@Shard Shard merged commit 522d955 into userback:develop Feb 21, 2023
@Shard
Copy link
Contributor

Shard commented Feb 21, 2023

Hi @ekwoka,

Sorry for the delay on getting this PR moving. I remember reviewing and testing the e2e locally earlier, then trying to get the e2e working for external contributors and getting distracted by life (as always 😄 ).

I'm just going to merge it into develop now and make sure its working fine before I look to cut a new release for this 🎉

Cheers again for the contribution 🥇

@Shard Shard mentioned this pull request Feb 21, 2023
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.

None yet

2 participants