Skip to content

Commit

Permalink
Final fix of #749
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 6, 2019
1 parent e524060 commit 5a49f84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
## [13.2.2](https://github.com/streamich/react-use/compare/v13.2.1...v13.2.2) (2019-11-06)


### Bug Fixes

* **#749:** now should work with SSR ([c12976c](https://github.com/streamich/react-use/commit/c12976cad26577a4be3ac65133268f41bbdc82da)), closes [#749](https://github.com/streamich/react-use/issues/749)

## [13.2.1](https://github.com/streamich/react-use/compare/v13.2.0...v13.2.1) (2019-11-04)


Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-use",
"version": "13.2.1",
"version": "13.2.2",
"description": "Collection of React Hooks",
"main": "lib/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/useTitle.ts
Expand Up @@ -8,4 +8,4 @@ function useTitle(title: string) {
}
}

export default document ? useTitle : (_title: string) => {};
export default typeof document !== 'undefined' ? useTitle : (_title: string) => {};

0 comments on commit 5a49f84

Please sign in to comment.