Skip to content

Commit

Permalink
docs: change default in README (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored May 30, 2022
1 parent bd70caf commit 1dbb678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte-hmr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ Force preservation of a given local variable in this component.
#### optimistic

Type: `bool`<br>
Default: `true`
Default: `false`

Set this to `false` to consider runtime errors during component init (i.e. when your `<script>` code is run) as fatal to HMR (hence worthy of a full reload if `noReload` option is not set). When `true`, `svelte-hmr` will try to render the next version of the component in the place of the one that has crashed instead of programming a full reload.
When `false`, runtime errors during component init (i.e. when your `<script>` code is run) are considered fatal to HMR (hence worthy of a full reload if `noReload` option is not set). When `true`, `svelte-hmr` will try to render the next version of the component in the place of the one that has crashed instead of programming a full reload.

## What's HMR, by the way?

Expand Down

0 comments on commit 1dbb678

Please sign in to comment.