You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it was a poor design decision to dispatch the signals as soon as the user calls setHash, events should always be async to avoid headaches (avoid cases where user might not expect something to happen in between).
The text was updated successfully, but these errors were encountered:
Hi, I just wrote a library called stateless.js which is quite similar but simpler, and I stumbled upon your lib. Asynchronous dispatches can be done via having an event listener on the hashchange event. Those are fired asynchronously on most/all browsers- Firefox, Chrome, Safari (I don't know about IE).
However from my experience testing it is quite tedious; I don't know what kind of asynchronous constructs are offered by QUnit which is used as your test runner if I'm not mistaken. For example in Mocha:
it was a poor design decision to dispatch the signals as soon as the user calls
setHash
, events should always be async to avoid headaches (avoid cases where user might not expect something to happen in between).The text was updated successfully, but these errors were encountered: