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

Enhance UI performance on the async process #3

Open
wgao19 opened this issue Aug 16, 2023 · 0 comments
Open

Enhance UI performance on the async process #3

wgao19 opened this issue Aug 16, 2023 · 0 comments

Comments

@wgao19
Copy link
Owner

wgao19 commented Aug 16, 2023

Background:

The img.decode() is an asynchronous and potentially slow process that is required for image rasterization. This is managed by Recoil's async selector and is accessed via useRecoilValueLoadable(). This now waits for all images to be decoded and will return all of them together.

Ask:

Explore breaking down the selected values e.g. using selectorFamily such that each image can be loaded individually.

Or, explore if there are other possibilities.

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

No branches or pull requests

1 participant