3 ms·
Can anyone elaborate on what this is? I've read the article, but have no idea what gact is.
by mijoharas 7y ago
Can anyone elaborate on what this is? I've read the article, but have no idea what gact is.
- winkywooster 7y agoLooks like they're trying to make a point about an issue they posted.. https://github.com/facebook/react/issues/16316 https://github.com/facebook/react/issues/16316
- svieira 7y agoThey are proposing a change the way the lifecycle of a React component is computed. Right now: if (someCondition) { return <div><Thing /></div> } else { return <Thing /> } will result in `Thing` going through the unmount / re-mount portion of the component lifecycle every time `someCondition` changes. This proposal suggests that instead `Thing` should remain mounted. It has been suggested (in the linked issue https://github.com/facebook/react/issues/16316 https://github.com/facebook/react/issues/16316) that there is a plan to make this possible at some point via something termed "re-parenting".
- gactleaks 7y agoGact is a new framework that will be released in the coming months. In the time leading up to its release, I am releasing a series of documents explaining core ideas.