solidjs / react-solid-state Goto Github PK
View Code? Open in Web Editor NEWAuto tracking state management for modern React
License: MIT License
Auto tracking state management for modern React
License: MIT License
TypeScript complains that createEffect should have 2 arguments. I believe the following should work without issue:
const [someSignalValue, setSomeSignalValue] = createSignal("foo");
createEffect(() => {
console.log(someSignalValue()); // will log "foo"
});
However, the type definition says that there should be a second argument for a value
. I'm not sure why this second argument is required or even what it does. Is it a dependency? And if so, shouldn't it be optional since someSignalValue()
is automatically tracked?
Maybe I'm misunderstanding. Thanks!
It appears that react-solid-state
doesn't support the new Renderer in React 18.
Using the old render function with React 18 still works, but switching to the new render function in React 18 doesn't work.
Since createStore is supported, but it looks like we can't iterate it under the react context, there is no 'For each' in here right?
setting a signal or setting a store does trigger an update of the UI, but its previous value is being rendered instead of the updated value.
example with Signal: https://codesandbox.io/s/determined-satoshi-v2xk8?file=/src/App.js
example with Store: https://codesandbox.io/s/frosty-silence-syubp?file=/src/App.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.