simbathesailor / use-what-changed

A React hook and an easy to use babel-pugin to debug various React official hooks
https://codesandbox.io/s/simabthesailoruse-what-changed-demo-q94rn
MIT License
658 stars 12 forks source link

uwc-debug & uwc-debug-below #59

Open wove5 opened 10 months ago

wove5 commented 10 months ago

Thank you for the helpful library.

Are uwc-debug & uwc-debug-below implemented? I could not get them to work for useCallBack. useWhatChanged worked well on useEffect.

simbathesailor commented 10 months ago

uwc-debug and uwc-debug-below comment works with babel plugin https://github.com/simbathesailor/babel-plugin-use-what-changed. Here is demo link (https://codesandbox.io/s/simabthesailor-use-what-changed-demo-forked-8gtfjk?file=/src/index.js)

I would suggest you to directly use without babal plugin (use-what-changed).