(mutation: Mutation)
| 61 | // FUNCTIONS |
| 62 | |
| 63 | function dehydrateMutation(mutation: Mutation): DehydratedMutation { |
| 64 | return { |
| 65 | mutationKey: mutation.options.mutationKey, |
| 66 | state: mutation.state, |
| 67 | ...(mutation.options.scope && { scope: mutation.options.scope }), |
| 68 | ...(mutation.meta && { meta: mutation.meta }), |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // Most config is not dehydrated but instead meant to configure again when |
| 73 | // consuming the de/rehydrated data, typically with useQuery on the client. |
no outgoing calls
no test coverage detected
searching dependent graphs…