Closed nicholaschiang closed 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.
🔍 Inspect: https://vercel.com/readhammock/hammock/Amktyy8VRZiZjcHa2BaEhDWSMHkx
✅ Preview: https://hammock-git-pd-114-readhammock.vercel.app
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.