Replies: 1 comment 1 reply
-
to do what exactly? mutations change some state, and changing some state depending on a UI rendering (which can happen often) is rarely a good idea. it’s probably better to move that action to wherever the user initiates the navigation (link click, button click). |
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
-
Queries run on mount, yet mutations need to be explicitly invoked. Would it make sense to add a "mutate on mount" feature?
Usecase: having a page that always runs the same action (mutation) when the user navigates to it.
Right now handling it with
although would be great to have something like
Beta Was this translation helpful? Give feedback.
All reactions