Comments (12)
@TheMadKow while waiting for the update, you can modify the index.js file by replacing :
nodes.forEach(node => {
// const getDeps = [...snapshot.getDeps_UNSTABLE(node)];
const getDeps = [...snapshot.getInfo_UNSTABLE(node).deps];
nodeDeps[node.key] = getDeps.map(dep => dep.key);
});
Thanks, @kevintap-idemia for the help ;)
from recoilize.
This is still an issue
from recoilize.
Is this issue fixed? because I also tried to add this change in the index.js file and the chrome extension just crashed!
I believe the PR which fixed this issue was merged (#140), and it would be included inside the release of v3.0.0 if it comes in the near future as planned.
from recoilize.
@Sammyham Thanks for the solution!
Could you create a pull request for that please ?
from recoilize.
I suspect that this is not being merged due to backwards compat concerns. The PR would allow compatibility with recoil 0.2.0+, but would then break compatibility with older recoil releases (0.1.3), which is the current stated compatible/tested recoil release in the docs for the recoilize 2.0.1 release. Perhaps @Sammyham if you re-work your PR to allow backwards compat, this might be simpler to merge?
from recoilize.
Is this issue fixed? because I also tried to add this change in the index.js file and the chrome extension just crashed!
from recoilize.
I'm getting another error after I updated the getDeps function:
Uncaught TypeError: Cannot read properties of undefined (reading '_internalRoot')
with the function:
const createDevToolDataObject = (filteredSnapshot, diff) => {
if (diff === undefined) {
return {
filteredSnapshot: filteredSnapshot,
componentAtomTree: formatFiberNodes(
recoilizeRoot._reactRootContainer._internalRoot.current,
),
};
} else {
return {
filteredSnapshot: filteredSnapshot,
componentAtomTree: formatFiberNodes(
recoilizeRoot._reactRootContainer._internalRoot.current,
),
indexDiff: diff,
};
}
};
Is this because I'm using React 18?
from recoilize.
Any workarounds for this issue ? :)
from recoilize.
Same problem, any help please? ๐
from recoilize.
Done #140
from recoilize.
It would be great to get this PR merged - we're having to manually update the index.js everytime we add recoilize, and it's getting a bit tiresome.
The work is already done, just needs merging.
@razananisathar @nbargers is there anything further we can help with to push this along?
from recoilize.
Thank you for the workaround!
from recoilize.
Related Issues (20)
- setSelf() in atom effect produce eleaseNodesNowOnCurrentTree error
- Installation fails HOT 3
- may I translate to korean language? HOT 3
- Error Installing
- snapshot.getDeps_UNSTABLE is not a function or its return value is not iterable HOT 1
- React 17 support HOT 4
- TypeError๏ผ Cannot read properties of null (reading '_reactRootContainer') at createDevToolDataObject HOT 2
- Raw State Json In DevTools HOT 1
- TypeError: Cannot read properties of undefined (reading '_internalRoot') HOT 7
- Add React 18 support HOT 1
- React Native Support? HOT 1
- Error with nextjs - Recolize v3.1.6
- TypeError: currentNode.memoizedState.hasOwnProperty is not a function HOT 1
- TypeError: Cannot read properties of undefined (reading 'getStore_INTERNAL')
- works with storybook?
- index.js:201 Uncaught TypeError: Cannot read properties of undefined (reading '_internalRoot') at createDevToolDataObject (index.js:201:1) HOT 9
- Cant Install package using yarn workspaces "Cannot find module 'recoilize' or its corresponding type declarations"
- Uncaught Error: Snapshot has already been released.
- Blank screen on Chrome HOT 2
- support for atomFamily HOT 1
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 recoilize.