-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Tree fails to render or appear in DOM #407
Comments
With some slight code changes, I now have a version of it working - still not sure why this original code would not render anything though... |
How did you solve it? |
Having essentially the same problem. Any insight into how you solved it @ck-cklinger ? Or you @TCXX ? The tree simply doesn't render. No warnings, errors, or other information in either the vite output or the browser debug console, just.. nothing. |
So in my case it turns out I am getting some output in the DOM, but nothing in the tree, using this data structure:
And this return value for the component (
However the list for the tree is entirely empty, though the aria stuff is there. I've clipped all the css and scripting out of 'head' for brevity as it's over 8000 lines (also using mantine UI):
The main issue seems to be this: |
Ok, for me, solved. I mistakenly thought the EDIT: The full story actually seems to be that, when using the uncontrolled environment with a simple I could not find a repo for the docs so I can't submit a PR to change them to mention this behavior. |
Thanks for pointing that out @alzeebum, yes that is in fact not explicitly mentioned in the docs. If you would like to contribute that part to the docs yourself, feel free to do so, they are located here: https://github.com/lukasbach/react-complex-tree/tree/main/packages/docs/docs |
@lukasbach can you please provide an example? The structure below doesn't solve the problem.
|
Describe the bug
Starting off with this library (this is great by the way, thank you for creating and maintaining this library), so attempting to start pretty basic and then adapt it to my specific needs. I have a component that should hold the tree:
This is basically ripped straight from the docs/example code in the source files, so I would expect it would work.
The issue I'm running into is that the Tree component does not render (I have another parent component that includes
<CategoryTree />
as one of its children). There's no error in the console and no flags in my IDE, but it doesn't show up in my browser and I also can't find it in the DOM at all.Expected behavior
I would expect to see something similar to here: https://rct.lukasbach.com/docs/guides/static-data-provider
Additional context
Currently running in a dev environment using:
Running in Chrome version 127.0.6533.89 on Mac OS Venture (13.0)
I'm happy to provide any other information that may help in figuring this out. I'm probably just doing something dumb and this isn't actually a bug, but I can't be sure of that at the moment.
The text was updated successfully, but these errors were encountered: