Skip to content

Commit 158b4b0

Browse files
committed
feat(use-component-will-receive-update): return changed boolean
1 parent af4f96b commit 158b4b0

File tree

1 file changed

+2
-0
lines changed
  • src/use-component-will-receive-update

1 file changed

+2
-0
lines changed

src/use-component-will-receive-update/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ export function useComponentWillReceiveUpdate(callback: () => void, deps: readon
1515
setPrev(deps);
1616
callback();
1717
}
18+
19+
return changed;
1820
}

0 commit comments

Comments
 (0)