@@ -83,7 +83,7 @@ export function useHostedShip(client, patp) {
83 } catch (error) {
83 } catch (error) {
84 setError(error);
84 setError(error);
86− }, [client, patp, resetEvents, setError]);
86+ }, [client, patp, resetEvents, setError, setState]);
88 const getEvents = useCallback(() => {
88 const getEvents = useCallback(() => {
@@ -139,7 +139,7 @@ export function useHostedShip(client, patp) {
139 } catch (error) {
139 } catch (error) {
140 setError(error);
140 setError(error);
142− }, [setError, client, patp, getEvents]);
142+ }, [setError, setState, client, patp, getEvents]);