mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-18 15:26:50 +00:00
745: update unique key to React list element in relay-reactjs-chat app r=D4nte a=tobyjaguar ## Problem When running the app on a development server, the React list of mapped messages produces a warning that the children in a list should have a unique key prop: <img width="1347" alt="Screen Shot 2022-05-17 at 4 02 23 PM" src="https://user-images.githubusercontent.com/16940072/168926247-ca331666-f23c-487b-9023-3c63eea35492.png"> ## Solution Add a unique key to the list element in the App.js component. ## Notes Any unique key will do here, but the timestamp seems to work unless the maintainers refactor for a better id. A timestamp may not be ideal if multiple messages with the same timestamp come in. Perhaps a uuid would work, but perhaps that is too heavy handed for an example, although this may be a choice for a production implementation. Co-authored-by: tobyjaguar <talgya@gmail.com> Co-authored-by: Franck Royer <franck@status.im>
js-waku
A JavaScript implementation of the Waku v2 protocol.
Documentation
API Documentation can also be generated locally:
git clone https://github.com/status-im/js-waku.git
cd js-waku
npm install
npm run doc
Changelog
Release changelog can be found in CHANGELOG.md.
Bugs, Questions & Features
If you encounter any bug or would like to propose new features, feel free to open an issue.
To get help, join #wakuconnect-support on Vac Discord or Telegram.
For more general discussion and latest news, join #wakuconnect on Vac Discord or Telegram.
Roadmap
You can track progress on the project board.
Contributing
See CONTRIBUTING.md.
License
Licensed and distributed under either of
- MIT license: LICENSE-MIT or http://opensource.org/licenses/MIT
or
- Apache License, Version 2.0, (LICENSE-APACHE-v2 or http://www.apache.org/licenses/LICENSE-2.0)
at your option. These files may not be copied, modified, or distributed except according to those terms.
Description
Languages
TypeScript
94.4%
JavaScript
5.6%