conert listener to utilize `useEffect`
This commit is contained in:
parent
ff0c2829f6
commit
1fb221a034
|
@ -42,8 +42,12 @@ class AddInstancePage extends HookWidget {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
useEffect(() {
|
||||||
instanceController.addListener(debounce);
|
instanceController.addListener(debounce);
|
||||||
|
|
||||||
|
return () => instanceController.removeListener(debounce);
|
||||||
|
}, []);
|
||||||
|
|
||||||
handleOnAdd() async {
|
handleOnAdd() async {
|
||||||
delayedLoading.start();
|
delayedLoading.start();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue