hey
hey copied to clipboard
fix: lazy load dm convo list
What does this PR do?
Adds lazy loading to fetch the preview messages for the conversations list
Type of change
- [ ] Enhancement (non-breaking small changes to existing functionality)
How should this be tested?
- [ ] See if everything on messaging works correctly
- [ ] If you have a lot of conversations see if the loading is quicker and smoother
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
api | ✅ Ready (Inspect) | Visit Preview | Dec 6, 2022 at 5:44AM (UTC) |
pro | ✅ Ready (Inspect) | Visit Preview | Dec 6, 2022 at 5:44AM (UTC) |
web | ✅ Ready (Inspect) | Visit Preview | Dec 6, 2022 at 5:44AM (UTC) |
Getting closer: It looks like it's the useListConversations
hook that is the bottleneck right now. Going to investigate how many requests we're still making in there 👀

Closing this out for now as we continue to investigate! For more context on where we're at, see this comment: https://github.com/lensterxyz/lenster/pull/1366#issuecomment-1342726519