on master help sign in
fix: correctly append entries to point cache
edf00a4Matt Condon (shrugs)
src/bridge/store/pointCache.js+1−1
@@ -6,7 +6,7 @@ function _usePointCache() {
6 const [pointCache, _setPointCache] = useState({});
6 const [pointCache, _setPointCache] = useState({});
7
7
8 const addToPointCache = entry =>
8 const addToPointCache = entry =>
9− _setPointCache(cache => ({ ...cache, entry }));
9+ _setPointCache(cache => ({ ...cache, ...entry }));
10
10
11 return {
11 return {
12 pointCache,
12 pointCache,