reinspect
reinspect copied to clipboard
Crash with useState when setState(null)
When using useState to track state in dev tool, passing "null" as argument to state setter will result in error in reinspect:
const App = () => {
const [queryId, setQueryId] = useState('', 'app/queryId');
useEffect(() => {
if (queryId) {
setQueryId(null);
}
}, [queryId]);
return (<div>App</div>)
};
This is probably due to the fact that reinspect fakes a reducer call with useState.
didn't get how it supposed to work and made a simple fix #23
So is this dead?