You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* useDynTabs hook returns ready function instead of instance object, as a third element of an array.
4
+
( tabs can't be manipulated safely before the first render, use ready() to make a function available after the component is mounted )
5
+
6
+
* Third element of returned array by useDynTabs hook should not be used as an object, it is no longer recommended and only be kept for backwards compatibility purposes, may be removed in the future. Avoid using it as an object.
7
+
8
+
# v2.2.0
9
+
10
+
* close function can take switching parameter
11
+
12
+
# v2.1.0
13
+
14
+
* panel component option can be either of React element or React component
instance Object will not be changed after re-rendering multiple times.
125
-
Its value always refers to same reference.
132
+
* ready function and instance Object will not be changed after re-rendering multiple times.
133
+
134
+
* Tabs can't be manipulated safely before the first render, use ready() to make a function available after the component is mounted.
135
+
136
+
* ready function accepts a function as a parameter and calls it with instance object after the first render, when the component is mounted.
137
+
138
+
* When ready function is called after the first render, it calls its function parameter with instance object immediately.
126
139
127
140
128
141
@@ -1011,6 +1024,23 @@ Some actions like open, select, close and refresh cause re-rendering,
1011
1024
and using them immediately after calling useDynTabs hook will create an infinite loop and other bugs that most likely you don't want to cause.
1012
1025
you should use them inside event listeners or subscriptions.
1013
1026
1027
+
## Deprecated features
1028
+
1029
+
These deprecated features can still be used, but should be used with caution because they are expected to be removed entirely sometime in the future. You should work to remove their use from your code.
1030
+
1031
+
* Third element of returned array by useDynTabs hook should not be used as an object, it is no longer recommended and only be kept for backwards compatibility purposes, may be removed in the future. Avoid using it as an object and use the code below instead of it.
0 commit comments