File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
generatedTypes/components/wizard Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ interface State {
9
9
* @description : Wizard Component: a wizard presents a series of steps in prescribed order
10
10
* that the user needs to complete in order to accomplish a goal (e.g. purchase a product).
11
11
*
12
- * @example : https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/WizardScreen.js
12
+ * @example : https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/WizardScreen.tsx
13
13
* @notes : Use Wizard with nested Wizard.Step(s) to achieve the desired result.
14
14
* @gif : https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Wizard/Wizard.gif?raw=true
15
15
* @image : https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Wizard/WizardPresets.png?raw=true
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ export default function useFieldState({
39
39
}
40
40
} , [ ] ) ;
41
41
42
+ useEffect ( ( ) => {
43
+ if ( props . value !== value ) {
44
+ setValue ( props . value ) ;
45
+ }
46
+ /* On purpose listen only to props.value change */
47
+ } , [ props . value ] ) ;
48
+
42
49
useDidUpdate ( ( ) => {
43
50
onChangeValidity ?.( isValid ) ;
44
51
} , [ isValid ] ) ;
You can’t perform that action at this time.
0 commit comments