Skip to content

Commit 139c0a2

Browse files
authored
Add note on custom Worker lifecycle.
1 parent 5e45048 commit 139c0a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ const MyComponent = () => (
9090

9191
> `url` and `options` are evaluated at mount time, so they must be defined immediately and won't respond to changes.
9292
93+
> A custom Worker provided through `worker` will not get terminated on unmount. You'll have to manage its lifecycle yourself.
94+
9395
### Render props
9496

9597
`<WebWorker>` provides the following render props:

0 commit comments

Comments
 (0)