Avoid shadow the networkService
This commit is contained in:
1 parent
22cae67ffe
commit
7c889dde47
1 file changed
+1
-2
@@ -8,8 +8,7 @@ const NetworkServiceProvider = ({ children }) => {
|
|||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
if (!networkService) {
|
if (!networkService) {
|
||||||
const networkService = new NetworkService(store, dispatch, navigate);
|
setNetworkService(new NetworkService(store, dispatch, navigate));
|
||||||
setNetworkService(networkService);
|
|
||||||
}
|
}
|
||||||
return children;
|
return children;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user