Skip to content

Commit 1a2f9a8

Browse files
authored
Added some documentation on the data structure required by a StaticDataProvider. (#423)
* Added note regarding data structure for static data providers used in an uncontrolled environment. * Added release note as requested by PR template --------- Co-authored-by: alzeebum <alzeebum>
1 parent fc0dbb0 commit 1a2f9a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

next-release-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
### Features
55
66
### Bug Fixes and Improvements
7+
- Added some documentation on the data structure required by a StaticDataProvider.
78
89
### Other Changes
9-
-->
10+
-->

packages/docs/docs/guides/uncontrolled-environment.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ function App() {
5858
}
5959
```
6060

61+
Note that for each item in the data structure representing the tree (`items` in this case), each object must have a field named `index` that has the same value as the key for that object. The `children` array can only refer to these values as well.
62+
6163
## Component Props
6264

6365
The props for the `UncontrolledTreeEnvironment` are as follows:

0 commit comments

Comments
 (0)