mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
chore: skip type during hydration
This commit is contained in:
@@ -50,6 +50,7 @@ function hydrateInternal<Input extends object, Output>(
|
||||
targetKey = hydration.keyMapping[key] ?? key;
|
||||
value = hydration.functions[targetKey as keyof Output](input);
|
||||
} catch (err) {
|
||||
if (key === "type") return acc;
|
||||
console.debug(`Skipping key ${String(key)} during hydration!`);
|
||||
return acc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user