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

Fix flash when showing dialog #104

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

jakub-gonet
Copy link
Member

@jakub-gonet jakub-gonet commented Apr 11, 2024

Screen behind was flashing due to the fact that devices manager reloaded listed devices which triggered rendering loading component in PreviewView.

Also simplified code in CreateDeviceView and pulled out useEffect from useDevice – it was used in two places only.

Fixes #63

noflash.mov

Copy link

vercel bot commented Apr 11, 2024

@jakub-gonet is attempting to deploy a commit to the software-mansion Team on Vercel.

To accomplish this, @jakub-gonet needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

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

Looks good. I added a suggestion on how to simplify this a bit as we don't need isLoading to indicate when we reload but only before devices are loaded for the first time.

@jakub-gonet jakub-gonet merged commit 76af243 into main Apr 12, 2024
1 of 2 checks passed
filip131311 pushed a commit that referenced this pull request Apr 15, 2024
Screen behind was flashing due to the fact that devices manager reloaded
listed devices which triggered rendering loading component in
PreviewView.

Also simplified code in CreateDeviceView and pulled out useEffect from
useDevice – it was used in two places only.

Fixes #63 


https://github.com/software-mansion/react-native-ide/assets/12465392/3b30d93f-f643-4ac3-94c7-00f7935ee873
@jakub-gonet jakub-gonet deleted the jgonet/flash-on-manage-devices-dialog branch May 10, 2024 13:37
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.

Using "manage devices" modal causes re-renders of current simulator which eventually breaks the preview
2 participants