nicholaschiang / hammock

Move your newsletters outside of your inbox. Focus on and learn from the content you love in a distraction-free reading space.
https://readhammock.com
GNU Affero General Public License v3.0
11 stars 1 forks source link

perf: use bound mutate for messages #115

Closed nicholaschiang closed 3 years ago

linear[bot] commented 3 years ago
PD-114 Use bound mutate for global messages

Because [https://github.com/vercel/swr/pull/1257](https://github.com/vercel/swr/pull/1257) doesn't seem to support mutating off of the current data (or, at least, it doesn't seem to be working for Hammock thus far), I'm going to rely on a less performant option of using the bound `mutate` from `useMessages`. This is probably also a better solution for now until `swr@1.0.0` lands from beta.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

hammock – ./

🔍 Inspect: https://vercel.com/readhammock/hammock/Amktyy8VRZiZjcHa2BaEhDWSMHkx
✅ Preview: https://hammock-git-pd-114-readhammock.vercel.app

nicholaschiang commented 3 years ago

Related: https://github.com/vercel/swr/issues/1316