forked from remix-run/react-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[removed] Ability to return a promise from willTransition* hooks This commit makes async transitions entirely optional. Users opt-in to using asynchronous transitions using transition.wait(promise). Fixes remix-run#309 Fixes remix-run#300 Fixes remix-run#295
- Loading branch information
Showing
3 changed files
with
116 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var Promise = require('when/lib/Promise'); | ||
|
||
// TODO: Use process.env.NODE_ENV check + envify to enable | ||
// when's promise monitor here when in dev. | ||
|
||
module.exports = Promise; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters