-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React : multiple grids crashes #2937
Comments
Yes, I copied the whole lib/ folder from the react example, and basically duplicated the grids from the first provider. I can't get the two of them to work, only the last one does. Note that only adding a component in a grid is not working, for example, I am able to add a component in the last grid and then drag it over to the one dysfonctionning with no issues. While trying to bypass this problem, I encountered another: in react there doesn't seem to be a fast forward way to add a component in a subgrid... |
Hi there. https://codesandbox.io/p/sandbox/github/Aysnine/gridstack-react/tree/main?file=/src/App.tsx |
@Aysnine thanks for being active on that code. I actually wanted to start shipping them like I do for /angular |
Hi,
I wanted to test gridstack for my project and made a very basic grid like this:
Whenever I want to add a widget in them, it works fine for the last one but crashes for all the ones before (here grid 1).
The reason for the crash is :
It comes from GridStackRenderProvider, in
as widgetContainersRef.current.get(widgetId) unexpectedly returns undefined.
I would appreciate some help here.
The text was updated successfully, but these errors were encountered: