Open Extarys opened 2 weeks ago
Eden documentation regarding mutations and the examples provided inside the Git repository differ. The left-side bar says createMutation() (which is the valid method for the svelte-side of things) but the code refers to useMutation.
createMutation()
useMutation
Doc Appears to be incorrect
https://github.com/ap0nia/eden-query/blob/e45550593389d2968a65233f90e6d6d84729d5f7/documentation/docs/eden-query/svelte/createMutation.md?plain=1#L88
Working demo
https://github.com/ap0nia/eden-query/blob/e45550593389d2968a65233f90e6d6d84729d5f7/examples/eden-svelte-query-basic/src/routes/mutation/%2Bpage.svelte#L6
The React example seems "ok", the doc and the example both refer useMutation method.
Oops, bad copy/paste job. Svelte should have the createMutation hook.
createMutation
Eden documentation regarding mutations and the examples provided inside the Git repository differ. The left-side bar says
createMutation()
(which is the valid method for the svelte-side of things) but the code refers touseMutation
.Doc Appears to be incorrect
https://github.com/ap0nia/eden-query/blob/e45550593389d2968a65233f90e6d6d84729d5f7/documentation/docs/eden-query/svelte/createMutation.md?plain=1#L88
Working demo
https://github.com/ap0nia/eden-query/blob/e45550593389d2968a65233f90e6d6d84729d5f7/examples/eden-svelte-query-basic/src/routes/mutation/%2Bpage.svelte#L6
The React example seems "ok", the doc and the example both refer
useMutation
method.