clean-fetch
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -19,3 +19,3 @@ "use strict"; | ||
return () => void (unmountedRef.current = true); | ||
}); | ||
}, []); | ||
const [state, setState] = (0, react_1.useState)(() => { | ||
@@ -57,2 +57,2 @@ if (!getInitial) | ||
exports.useFetch = useFetch; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9va3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaG9va3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQThEO0FBWTlEOzs7Ozs7R0FNRztBQUNILFNBQWdCLFFBQVEsQ0FDdkIsT0FBNkIsRUFBRSx5QkFBeUI7QUFDeEQsVUFBZ0MsQ0FBQyxxQkFBcUI7O0lBRXRELE1BQU0sWUFBWSxHQUFHLElBQUEsY0FBTSxFQUFDLEtBQUssQ0FBQyxDQUFBO0lBQ2xDLElBQUEsaUJBQVMsRUFBQyxHQUFHLEVBQUU7UUFDZCxZQUFZLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQTtRQUM1QixPQUFPLEdBQUcsRUFBRSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxDQUFBO0lBQ2hELENBQUMsQ0FBQyxDQUFBO0lBRUYsTUFBTSxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsR0FBRyxJQUFBLGdCQUFRLEVBQVcsR0FBRyxFQUFFO1FBQ2pELElBQUksQ0FBQyxVQUFVO1lBQUUsT0FBTyxFQUFFLENBQUE7UUFDMUIsSUFBSSxDQUFDO1lBQ0osT0FBTyxFQUFDLElBQUksRUFBRSxVQUFVLEVBQU8sRUFBQyxDQUFBO1FBQ2pDLENBQUM7UUFBQyxPQUFPLEtBQUssRUFBRSxDQUFDO1lBQ2hCLE9BQU8sRUFBQyxLQUFLLEVBQUMsQ0FBQTtRQU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QyxDQUFBO0lBRU4sTUFBTSxNQUFNLEdBQUcsSUFBQSxtQkFBVyxFQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQTtJQUN2RCxPQUFPLEVBQUMsR0FBRyxLQUFLLEVBQUUsTUFBTSxFQUFDLENBQUE7QUFDMUIsQ0FBQztBQTFDRCw0QkEwQ0MifQ== |
@@ -16,3 +16,3 @@ import { useCallback, useEffect, useRef, useState } from 'react'; | ||
return () => void (unmountedRef.current = true); | ||
}); | ||
}, []); | ||
const [state, setState] = useState(() => { | ||
@@ -53,2 +53,2 @@ if (!getInitial) | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9va3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaG9va3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFdBQVcsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBQyxNQUFNLE9BQU8sQ0FBQTtBQVk5RDs7Ozs7O0dBTUc7QUFDSCxNQUFNLFVBQVUsUUFBUSxDQUN2QixPQUE2QixFQUFFLHlCQUF5QjtBQUN4RCxVQUFnQyxDQUFDLHFCQUFxQjs7SUFFdEQsTUFBTSxZQUFZLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFBO0lBQ2xDLFNBQVMsQ0FBQyxHQUFHLEVBQUU7UUFDZCxZQUFZLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQTtRQUM1QixPQUFPLEdBQUcsRUFBRSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxDQUFBO0lBQ2hELENBQUMsQ0FBQyxDQUFBO0lBRUYsTUFBTSxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsR0FBRy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