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

Rewrite towards hooks #336

Closed
wants to merge 8 commits into from
Closed

Conversation

tstirrat15
Copy link

Fixes #333 (eventually)

Motivation

The original motivation is that this lib was throwing deprecation warnings about findDOMNode in StrictMode on our project. Otherwise, though, it's about updating/modernizing the lib.

Changes

See commit messages for a summary. I'm also happy to answer questions through a review, or annotate on my own through a review if you like.

Testing

I got stuck on rewriting the tests. I'm not super familiar with how Karma works - the only test framework I have any real experience with is mocha/enzyme. I got stuck on trying to console.log things to debug - I couldn't figure out where the output would show up, if it showed up at all.

Any tips on testing and debugging?

Beyond that, I see the appeal in using browser-based tests for a lib that's built around browser interactions and browser quirks, but I've generally found that browser-based testing is a pain because it's hard to trace an error or failure back to its source. Do you have thoughts on moving towards something like react-test-renderer that's a bit friendlier to devs for most of the tests?

@tstirrat15 tstirrat15 changed the title 333 hooks rewrite Rewrite towards hooks Nov 26, 2019
@Pomax Pomax closed this Mar 22, 2023
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

Successfully merging this pull request may close these issues.

Roadmap?
2 participants