Comments (4)
from react.
from react.
Thank you for taking the time to have a look at this code.
About the fact that the method transform (from the parent) is bound to the first render of the Parent: From what I understood from closure is that the function always has access to the scope it had at the moment of creation. But it does not mean that changes happening in this scope are not visible. So I don't get why calling the transform
method later would hide the changes to the merged
state variable.
There are no multiple scopes created, right?
from react.
Btw @rimline , do you have the new code you showed in a branch somewhere that I can have access to?
from react.
Related Issues (20)
- Bug: Adding StrictMode component leads to cases that can't happen in concurrent mode. HOT 3
- Bug: <link> onLoad event happened but not triggered (18.2.0 & 18.3.0-canary-2e470a788-20240214) HOT 1
- Introducing `UseConstantState()` - A Novel Approach to Permanent State Management 🚀 HOT 6
- Bug: `textarea` inputs in Safari stop accepting input if certain lines are deleted HOT 5
- React Project Doesn't display on browser HOT 2
- Bug: Undo/Redo not behaving as expected for controlled input when state is updated from an async callback HOT 3
- Bug: React can leak the whole subtree when using contentEditable (reproduction sscce included) HOT 2
- Request: Define to exports cjs/* files in package.json
- Feature request: Define prop preprocessor
- Bug: errors caught by error boundaries appear in console twice HOT 1
- Bug: `flushSync` does not work HOT 2
- Bug: Next.js Build Errors Fix HOT 1
- Bug: Use useId function to generate dom id,it can't use document.querySelector function. HOT 6
- Bug: Despite having implemented optimizations such as shouldComponentUpdate or PureComponent HOT 7
- Bug: unable to compile standalone binary in Deno with server rendering, while using Typescript.
- RSS feed for the blog HOT 3
- Bug: Using useSyncExternalStore with SSR and no getServerSnapshot results in error HOT 6
- Nested <form> elements error with "A React form was unexpectedly submitted." HOT 11
- I am very much looking forward to React having an ESM bundle version similar to Vue, specifically designed for the tree Shaking feature in Rollup, which is convenient to package into NginxScript's njs for SSR use HOT 1
- [DevTools Bug]: Error: Should have a queue. This is likely a bug in React. Please file an issue. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.