Skip to content

Commit

Permalink
Remove unnecessary bits (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca authored Nov 30, 2021
1 parent 4f3446f commit 96245d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function createStore(defaultStore = {}, callback) {
* @param {function} callback
*/
function useSubscription(path, callback) {
let forceRender = useReducer(() => [], 0)[1];
let forceRender = useReducer(() => [])[1];

useEffect(() => {
subscription._subscribe(path, forceRender);
Expand Down

0 comments on commit 96245d5

Please sign in to comment.