Skip to content

Partially lazy defineLoader #382

Closed Answered by posva
robertmoura asked this question in Questions and Help
Discussion options

You must be logged in to vote

This is something I thought about too (https://uvr.esm.is/rfcs/data-loaders/#other-alternatives) but I don't think it's worth it because it's not a reliable solution to avoid the flashing: you will still be able to see flashing if the data takes just a little bit more than the timeout. The real issue here is the unreliable API, although in some cases, it's tied to the call itself and that cannot be changed.

The way I would solve this is by only displaying the loading state after a delay or displaying a skeleton to reduce the flash.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robertmoura
Comment options

Answer selected by robertmoura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants