plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

Implement state strings #291

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

It is possible to display a message like "Fetching IPFS from ipfs.io, cloudflare-ipfs.com" with the loading skeleton.

The code to do so is in:

https://github.com/plebbit/plebbit-react-hooks/blob/master/docs/clients.md#publish-comment-with-state-string https://github.com/plebbit/plebbit-react-hooks/blob/master/docs/clients.md#get-feed-with-single-sub-with-state-string https://github.com/plebbit/plebbit-react-hooks/blob/master/docs/clients.md#get-feed-with-multiple-subs-with-state-string

I'm not sure exactly where and how it should be displayed, I think it needs to be experimented with.

The state strings are already partially implemented in https://plebchan.vercel.app/, I recommend you test it to see what it looks like.