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

chore: fixed list shuffles on RandomAppList #1163

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

developerfred
Copy link
Contributor

@developerfred developerfred commented Jul 6, 2020

Description

Changing the logic of random numbers for correction or random reproduction
#1040

Related Issue

Screenshots (if appropriate):

https://share.getcloudapp.com/2Nu5prrO

Copy link
Contributor

@samajammin samajammin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@developerfred thanks for taking a swing at this!

Looking at the preview deploy however, the issue persists:

Image 2020-07-06 at 2 20 59 PM

As mentioned in the issue, please make sure it works upon building the app, not just in your local environment. Thanks!

@developerfred
Copy link
Contributor Author

@samajammin I believe I discovered the problem, we need to use hooks. Every time the component is shuffled the Intl loads. Putting the component to be the last one to load using userEffects. makes the component work normally.

Copy link
Contributor

@samajammin samajammin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@developerfred thanks for the quick fix! LGTM.

@samajammin samajammin merged commit 290b2f6 into ethereum:dev Jul 7, 2020
@developerfred
Copy link
Contributor Author

Nice! Thanks @samajammin

@samajammin
Copy link
Contributor

@all-contributors please add @developerfred for code.

@allcontributors
Copy link
Contributor

@samajammin

I've put up a pull request to add @developerfred! 🎉

@samajammin samajammin mentioned this pull request Jul 7, 2020
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