unavi-xyz/unavi

Explore feed search function and pagination

PSheon opened this issue · 3 comments

The explore feed is on-chain data so we can only filter in the client-side temporary for now?
I think the better way is run a contract event listener and update to the backend. maybe we can build it later.

截圖 2023-03-07 下午3 24 11

I like it 🔥 I think filtering in the client is fine for now. As the number of spaces grows we will need a more advanced solution for filtering spaces server side, that might involve contract events but im not exactly sure at the moment how they would fit in with Nextjs 13. My first thought was to cache spaces in the database and update them with contract events, but Next 13 has
a lot of built in caching support so it might not be needed.

Doing things server side seems like a complicated problem, should probably be its own issue.

@kayhhh can we close this issue?

Yep, merged in #674