uMS
#209
Replies: 3 comments 1 reply
-
|
What does tearing means in react? |
Beta Was this translation helpful? Give feedback.
1 reply
-
const mutation = createMutation({
snapshot: () => store.getValue(),
verison: () => store.version,
subscription: callback => {
const subscription = store.subscribe(callback)
return () => subscription.unsubscribe()
}
})
function Example(){
const snapshot = useMutation(mutation)
...
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
It is worth mentioning that tearing is only a problem. Our goal is not to solve this single problem, but to find a unified solution to control rendering through external state(mutation). It's not just about rerendering, it should also support abandoning rendering. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to find a way to control the rendering process and scheduler externally.
uMS is a good source of inspiration, but not necessarily the answer.
reactjs/rfcs#147
Beta Was this translation helpful? Give feedback.
All reactions