You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a store where you would return a relatively big amount of data directly from a useQuery
exportconstuseCoreProfileStore=defineStore('core/profile',()=>{const{data: allProfiles}=useAllProfiles()// In my case, this is an array with about ~8000 elements, above 7.5 MB in sizereturn{
allProfiles,}})
Expected behavior
Should work like normally and won't affect global routing performance, because, why would it?
Actual behavior
After the above store is loaded, even when the component which uses it is unmounted, routing globally is laggy with an extra ~1s delay.
Additional information
Not sure where should I create the issue, dumping it here first, and btw, by simply wrapping the return in an additional computed, the lag is fixed:
This discussion was converted from issue #3063 on November 07, 2025 15:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
.
Steps to reproduce the bug
Creates a store where you would return a relatively big amount of data directly from a
useQueryExpected behavior
Should work like normally and won't affect global routing performance, because, why would it?
Actual behavior
After the above store is loaded, even when the component which uses it is unmounted, routing globally is laggy with an extra ~1s delay.
Additional information
Not sure where should I create the issue, dumping it here first, and btw, by simply wrapping the return in an additional
computed, the lag is fixed:Beta Was this translation helpful? Give feedback.
All reactions