ecency / ecency-mobile

Ecency Mobile - reimagined social blogging, contribute and get rewarded (for Android and iOS)
https://ecency.com
MIT License
232 stars 69 forks source link

Nt/Waves Refresh Fix #2788

Closed noumantahir closed 8 months ago

noumantahir commented 8 months ago

Essentially since keys were separated by indices to optimise hydration, a new container was indiscriminable for react-query leading to wrong refresh.

What does this PR?

Updated waves queries to have unique query key for each active container in list while. It's in a controlled environment, looking forward to feedback when waves update is made while new container was created, let's see

Screenshots/Video

https://github.com/ecency/ecency-mobile/assets/6298342/bad0d75b-6c38-4676-99c9-568bec08b3f0