summaryrefslogtreecommitdiff
path: root/ui/lib/constants.js
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2025-02-11 23:16:16 -0500
committerKit La Touche <kit@transneptune.net>2025-02-20 21:53:25 -0500
commit43af74832f9a2fa7f40dc71985eec9b0ada087dd (patch)
treedab580484cc169825ad48ca66d0afb18b7aa8f6c /ui/lib/constants.js
parent8a2b499fc7e00e841c56d23ac41f4d587b728a50 (diff)
Merge local channel data and remote to maintain state
When we hit the boot endpoint, we get the server's view of things. If we just setChannels with that, we overwrite all our locally-stored info in on things like lastReadAt. So we need to merge data. Eventually, this might militate for a `meta` key containing an object of locally stored data, rather than having to handle each key specially.
Diffstat (limited to 'ui/lib/constants.js')
-rw-r--r--ui/lib/constants.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/lib/constants.js b/ui/lib/constants.js
new file mode 100644
index 0000000..a707c4b
--- /dev/null
+++ b/ui/lib/constants.js
@@ -0,0 +1 @@
+export const STORE_KEY_CHANNELS_DATA = 'pilcrow:channelsData';