Skip to content

Commit

Permalink
fixup: Flow typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyRSmith committed Jan 18, 2019
1 parent 6aff1a4 commit 100a00b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.8.4] - 2019-01-17
### Fixed
- Flow typing

## [1.8.3] - 2019-01-17
### Fixed
- "Warning: A history supports only one prompt at a time" - by moving unblock assign to compodentDidMount
Expand Down
2 changes: 1 addition & 1 deletion es/index.js
Expand Up @@ -143,7 +143,7 @@ var NavigationPrompt = function (_React$Component) {
_this.onConfirm = _this.onConfirm.bind(_this);
_this.when = _this.when.bind(_this);

_this.state = _extends({}, initState, { unblock: null /* unblock will be set in componentDidMount */ });
_this.state = _extends({}, initState, { unblock: function unblock() {} /* unblock will be set in componentDidMount */ });
return _this;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-navigation-prompt",
"version": "1.8.3",
"version": "1.8.4",
"description": "A replacement component for the react-router `<Prompt/>`. Allows for more flexible dialogs.",
"scripts": {
"build": "webpack",
Expand Down

0 comments on commit 100a00b

Please sign in to comment.