@renegade-fi/react
Advanced tools
Comparing version 0.0.0-canary-20240525002754 to 0.0.0-canary-20240525003732
@@ -22,18 +22,19 @@ 'use client'; | ||
new Map(); | ||
const existingTask = existingMap.get(incoming.id); | ||
console.debug('onUpdate debug: ', { | ||
existingMap, | ||
existingTask, | ||
incoming, | ||
}); | ||
if (!existingTask || incoming.state !== existingTask.state) { | ||
console.debug('setting debug', { | ||
existingMap, | ||
existingTask, | ||
incoming, | ||
}); | ||
const newMap = new Map(existingMap); | ||
newMap.set(incoming.id, incoming); | ||
queryClient.setQueryData(options.queryKey, newMap); | ||
} | ||
const newMap = new Map(existingMap); | ||
newMap.set(incoming.id, incoming); | ||
queryClient.setQueryData(options.queryKey, newMap); | ||
// if (!existingTask || incoming.state !== existingTask.state) { | ||
// console.debug('setting debug', { | ||
// existingMap, | ||
// existingTask, | ||
// incoming, | ||
// }) | ||
// const newMap = new Map(existingMap) | ||
// newMap.set(incoming.id, incoming) | ||
// queryClient.setQueryData(options.queryKey, newMap) | ||
// } | ||
} | ||
@@ -40,0 +41,0 @@ }, |
{ | ||
"name": "@renegade-fi/react", | ||
"version": "0.0.0-canary-20240525002754", | ||
"version": "0.0.0-canary-20240525003732", | ||
"description": "React library for Renegade", | ||
@@ -34,3 +34,3 @@ "files": [ | ||
"tiny-invariant": "^1.3.3", | ||
"@renegade-fi/core": "0.0.0-canary-20240525002754" | ||
"@renegade-fi/core": "0.0.0-canary-20240525003732" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -55,19 +55,20 @@ 'use client' | ||
new Map() | ||
const existingTask = existingMap.get(incoming.id) | ||
console.debug('onUpdate debug: ', { | ||
existingMap, | ||
existingTask, | ||
incoming, | ||
}) | ||
const newMap = new Map(existingMap) | ||
newMap.set(incoming.id, incoming) | ||
queryClient.setQueryData(options.queryKey, newMap) | ||
if (!existingTask || incoming.state !== existingTask.state) { | ||
console.debug('setting debug', { | ||
existingMap, | ||
existingTask, | ||
incoming, | ||
}) | ||
const newMap = new Map(existingMap) | ||
newMap.set(incoming.id, incoming) | ||
queryClient.setQueryData(options.queryKey, newMap) | ||
} | ||
// if (!existingTask || incoming.state !== existingTask.state) { | ||
// console.debug('setting debug', { | ||
// existingMap, | ||
// existingTask, | ||
// incoming, | ||
// }) | ||
// const newMap = new Map(existingMap) | ||
// newMap.set(incoming.id, incoming) | ||
// queryClient.setQueryData(options.queryKey, newMap) | ||
// } | ||
} | ||
@@ -74,0 +75,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
703012
3083
+ Added@renegade-fi/core@0.0.0-canary-20240525003732(transitive)
- Removed@renegade-fi/core@0.0.0-canary-20240525002754(transitive)