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

параметр keepPreviousData для query пока идет refetch #471

Open
xaota opened this issue Apr 9, 2024 · 0 comments
Open
Labels
scope:core type:enhancement New feature or request
Milestone

Comments

@xaota
Copy link

xaota commented Apr 9, 2024

сделать настройку, чтобы когда у квери идет рефетч, $data не сбрасывалась

(проще говоря, чтобы в UI моргания не было)

в react-query за это отвечают настройки keepPreviousData (или placeholderData в новой версии)


При этом вероятно нужен +1 новый стор $fetching, так как при фоновом рефетче $pending не должен выставляться в true

@igorkamyshev igorkamyshev added type:enhancement New feature or request scope:core labels Apr 10, 2024
@igorkamyshev igorkamyshev added this to the v1.0 milestone Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:core type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants