mirror of https://github.com/waku-org/js-waku.git
Remove extra line
This commit is contained in:
parent
4ae819357f
commit
92762deda2
|
@ -198,11 +198,10 @@ function App() {
|
|||
}
|
||||
```
|
||||
|
||||
Then, define `processMessages` to decode and then store messages in a React state.
|
||||
Then, define `processMessages` to decode and then store messages in the React state.
|
||||
You will pass `processMessages` as a `callback` option to `WakuStore.queryHistory`.
|
||||
`processMessages` will be called each time a page is received from the Waku Store.
|
||||
|
||||
|
||||
```js
|
||||
const processMessages = (retrievedMessages) => {
|
||||
const messages = retrievedMessages.map(decodeMessage).filter(Boolean);
|
||||
|
|
Loading…
Reference in New Issue