Skip to content

Commit 1bafa52

Browse files
committed
doc: update tutorial to mention pitfalls
1 parent 89694b7 commit 1bafa52

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/tutorial.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ const Page = () => {
104104
};
105105
```
106106

107+
> **💡 Important note 💡**
108+
>
109+
> Sometimes, you will have issues at some points with elements not properly registered spatially.
110+
> We'd like to mention it right now because you will not understand once you get the issue (if you ever do).
111+
>
112+
> The symptom is that the elements order can be messed up when trying to navigate. It happens usually when dealing with **asynchronous data** and **conditional rendering**.
113+
> _Workaround is simple_, but we'd recommend to be aware of it 😉
114+
>
115+
> [Read it here!](https://github.com/bamlab/react-tv-space-navigation/blob/main/docs/pitfalls.md)
116+
107117
### Add behaviour when you select an element
108118

109119
Simply add an `onSelect` props to a node, very similarly as if you were adding a `onPress` props.

0 commit comments

Comments
 (0)