Replies: 1 comment 1 reply
-
Maybe I know why... This is because alova stores only one hook state globally for the same key. Detailed description:
The relevant code is here: useHookToSendRequest.ts#L138 I'm not sure if this is a feature or a bug. @JOU-amjs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
In the App.vue i render two instance of the same component, which displays a random numbers list fetched from an API (with same URL params), when i update state (using updateState) or refetch the API used in the component list (using useFetcher) i expect to update both components with the new state but only the last component rendered get updated... is this a normal behaviour, my mistake or it can be an internal bug?
After first fetch:
After refetching:
Reproduction (using alova 2.20.3).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions