switcheroo
switcheroo copied to clipboard
POC: Use Hooks for SwitcherProvider
trafficstars
the tests are broken because we currently use instance and and we don't have that anymore. I fixed the first one though but manually firing a hashchange.
Awesome work so far. Yeah, some of the tests around hashchange have been problematic in the past as well. I wonder if jsdom is in a place now where it can handle that without the instance hack we were using before.
yeah it seemed like dispatching the hashchange event worked.