3 ms·
Though you need to replace: return thunk; with: return () => thunk(); Otherwise the assignment in thunk does nothing.
by compressedgas 3y ago
Though you need to replace:
return thunk;
with:
return () => thunk();
Otherwise the assignment in thunk does nothing.
- reuben364 3y agoWhoops, forgot to eta expand.