We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44709d commit d5b05cdCopy full SHA for d5b05cd
README.md
@@ -96,6 +96,10 @@ const MyComponent = () => (
96
- `updatedAt` {Date} when the last message or error was received
97
- `postMessage` {Function} sends a message to the Web Worker
98
99
+> Note: [it's recommended](https://nolanlawson.com/2016/02/29/high-performance-web-worker-messages/) to send and receive
100
+> JSON strings instead of JS objects for improved performance. `<WebWorker>` can't do this for you, so you'll have to
101
+> stringify and parse message data yourself if you care about performance.
102
+
103
## Examples
104
105
### Using `lastPostAt` to show a loading indicator
0 commit comments