Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you explain what happens in utils/debug-methods.js? #1

Open
onstash opened this issue Mar 17, 2018 · 1 comment
Open

Could you explain what happens in utils/debug-methods.js? #1

onstash opened this issue Mar 17, 2018 · 1 comment

Comments

@onstash
Copy link

onstash commented Mar 17, 2018

Hi @jiayihu. I was reading through react-tiny-dom and I came across debugMethods(obj, excludes). I couldn't understand how it works. Could you please explain how the method works? That'd be super helpful in understanding things! Thank you in advance! 😃👍

@jiayihu
Copy link
Owner

jiayihu commented Apr 24, 2018

The method debugMethods wraps the obj in a Proxy which intercepts every method call to log it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants