-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
368 additions
and
416 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules | ||
dist/* | ||
examples/dist/* | ||
!examples/dist/index.html | ||
example/dist/* | ||
!example/dist/index.html | ||
|
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 |
---|---|---|
|
@@ -85,7 +85,7 @@ Note that in addition to the hook, the component must be wrapped with `withError | |
|
||
This was done to avoid hooking into React internals, which would otherwise be required. The hope is that the eventual React hook solution will present a similar API, and users can easily migrate by removing the `withErrorBoundary` wrapper. | ||
|
||
For a full project example take a look at the [examples directory](https://github.com/tatethurston/react-use-error-boundary/blob/main/examples). | ||
For a full project example take a look at the [example](https://github.com/tatethurston/react-use-error-boundary/blob/main/example). | ||
|
||
## Known Limitations ⚠️ | ||
|
||
|
@@ -97,7 +97,7 @@ Because React recreates the component tree from scratch after catching an error, | |
|
||
🎁 Zero run time dependencies | ||
|
||
🦶 Small footprint [673 B minified and gzipped](https://bundlephobia.com/[email protected].0) | ||
🦶 Small footprint [673 B minified and gzipped](https://bundlephobia.com/[email protected].2) | ||
|
||
🪐 Isomorphic / Universal -- safe to run in any JS context: the browser or on a server | ||
|
||
|
File renamed without changes.
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"name": "examples", | ||
"name": "example", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"start": "yarn webpack && open dist/index.html" | ||
}, | ||
"author": "Tate Thurston <[email protected]>", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@types/react-dom": "^17.0.3", | ||
"ts-loader": "^9.0.0", | ||
"typescript": "^4.2.4", | ||
"webpack": "^5.34.0", | ||
"webpack-cli": "^4.6.0" | ||
"@types/react-dom": "^17.0.11", | ||
"ts-loader": "^9.2.6", | ||
"typescript": "^4.5.5", | ||
"webpack": "^5.66.0", | ||
"webpack-cli": "^4.9.1" | ||
}, | ||
"dependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-use-error-boundary": "^0.0.2" | ||
"react-use-error-boundary": "^1.0.2" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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