Is this different behavior of `enabled` a bug?
I have this query function:
Am I doing something wonky, or is there a reason thy using
enabled:
with a function and without produces different results?
š¤2 Replies
extended-salmonOPā¢2y ago
or is this producing a race condition?
conscious-sapphireā¢2y ago
In Vue Composition API, the setup script is only executed once per instance, so the
!!id.value
is only read once during component setup. Using a function or a computed ref here will allow Vue Query to detect changes to that value
I've only used a computed ref here actually, I didn't know a function worked too, cool!