Skip to content
Advertisement

Tag: gun

Why Gun.js duplicate messages in ReactJs

I’m implementing gun.js in react application.But messages are duplicated on each render, and on each update. Can someone help to figure out what’s wrong with my code. this my code . then in my component : get message on each new update send message function Answer My simple fix for that was add useRef()

how to store image / video file using gundb?

I know the traditional way is to store image/video file in one place and then just save the reference index into db’s table. Now I am learning about gundb, I can store key-value json type data very easily, but since it is decentralized, if I wanna make a say chatroom app, how should I handle image storing (eg: user’s avatar)?

Advertisement