Skip to content

Commit

Permalink
Added some documentation on the data structure required by a StaticDa…
Browse files Browse the repository at this point in the history
…taProvider. (#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>
  • Loading branch information
alzeebum authored Jan 4, 2025
1 parent fc0dbb0 commit 1a2f9a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Features
### Bug Fixes and Improvements
- Added some documentation on the data structure required by a StaticDataProvider.
### Other Changes
-->
-->
2 changes: 2 additions & 0 deletions packages/docs/docs/guides/uncontrolled-environment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function App() {
}
```

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.

## Component Props

The props for the `UncontrolledTreeEnvironment` are as follows:
Expand Down

0 comments on commit 1a2f9a8

Please sign in to comment.