omnistac / zedux Goto Github PK
View Code? Open in Web Editor NEW:zap: A Molecular State Engine for React
Home Page: https://Omnistac.github.io/zedux/
License: MIT License
:zap: A Molecular State Engine for React
Home Page: https://Omnistac.github.io/zedux/
License: MIT License
In the documentation, the Edit this page
link points to the incorrect place.
For example:
Currently it links to: https://github.com/Omnistac/zedux/tree/master/docs/about/introduction.mdx
I recommend it is linked to: https://github.com/Omnistac/zedux/edit/master/docs/docs/about/introduction.mdx
While checking out the example pages, I get the following error in Firefox (but not Chrome):
TypeError
can't access property "toUpperCase", fn[0] is undefined
generateReactComponentId/_a<@https://b5upgd.codesandbox.io/node_modules/
zedux/react/dist/cjs/classes/IdGenerator.js:83:13
generateReactComponentId@https://b5upgd.codesandbox.io/node_modules/
zedux/react/dist/cjs/classes/IdGenerator.js:78:14
useReactComponentId/<@https://b5upgd.codesandbox.io/node_modules/
zedux/react/dist/cjs/hooks/useReactComponentId.js:16:62
mountMemo
https://b5upgd.codesandbox.io/node_modules/react-dom/cjs/react-dom.development.js:17225:19
The Live Sandbox examples in the docs work fine, however: https://omnistac.github.io/zedux/docs/walkthrough/quick-start
A bit of triage indicates that it's likely because DEV mode is on while in Firefox in CodeSandbox, although I wasn't able to glean insights into why
v1.2.0-rc.1
Ctrl+K
doesn't open the search modal as the search button suggests."@zedux/react": "1.1.1",
useAtomSelector
doesn't trigger a re-render when used with useAtomContext
.
But, any other re-render in the component will cause the selector to register and work as intended.
Try making a change in the code in the code sandbox, and you'll see it start to synchronize.
https://codesandbox.io/s/epic-snow-pxyvym?file=/src/App.js:0-1823
1.1.1
I'm facing some strange useAtomSelector
bug where in certain circumstances selector doesn't update when the selected value changes. If I replace selector with an ion which has the same getter then it works. Another workaround is to put forceUpdate
(from useReducer
) right after I update the global atom's state in my component.
Can't reproduce the issue in sandbox.
The project I'm working on isn't open source, so there's no public repo. Is it possible to share code with you privately? If yes, please send me your email here or in Telegram (@crabvk).
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.