docs: update the documentation page.#73
Conversation
|
commit: |
KyleAMathews
left a comment
There was a problem hiding this comment.
Looking great!
We need to fit in somewhere that about how transaction lifecycles can be manually controlled.
E.g.
const addTodo = useOptimisticMutation({ mutationFn })
const addTodoTx = addTodo.createTransaction()
addTodoTx.mutate(() => {}
// user reviews change
// Another mutation
addTodoTx.mutate(() => {}
// Mutation is approved
addTodTx.commit()
KyleAMathews
left a comment
There was a problem hiding this comment.
Great stuff! A few minor suggestions but this is ready to go
Add a conceptual introduction to describe how to use the library. Reorganise the API reference. Add e2e examples for TanStack Query and Electric usage that illustrates typical collection type + mutationFn pattern.
https://github.com/TanStack/db/blob/thruflo/docs/docs/index.md