Skip to content

Commit b8bc1f6

Browse files
add getPreviousData into readme
1 parent 325ac01 commit b8bc1f6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ React Dynamic Tabs with full API
5353
- [one](#one)
5454
- [off](#off)
5555
- [getCopyData](#getCopyData)
56+
- [getPreviousData](#getPreviousData)
5657
- [tabData](#tabData)
5758
- [Lazy Loading](#lazy-loading)
5859
- [Styling](#styling)
@@ -914,6 +915,18 @@ Return value : Object
914915
const {selectedTabID, openTabIDs} = instance.getCopyData();
915916
```
916917

918+
### getPreviousData
919+
920+
get a copy of data in previous render
921+
922+
Return value : Object
923+
924+
**Example**
925+
926+
```js
927+
const {selectedTabID, openTabIDs} = instance.getPreviousData();
928+
```
929+
917930
## tabData
918931

919932
<table>
@@ -1027,6 +1040,8 @@ const open_tab_3 = function () {
10271040

10281041
- First parameter of onChange function is an object and has perviousData property which is deprecated. you should use previousData property instead of perviousData property.
10291042

1043+
- getCopyPerviousData method is deprecated. use getPreviousData method instead of it.
1044+
10301045
## Test
10311046

10321047
```js

0 commit comments

Comments
 (0)