Change default limit for router urls

This commit is contained in:
Jon Staab
2024-12-11 11:02:33 -08:00
parent 6f75ef4ab9
commit ab0517e804
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -137,8 +137,8 @@ export const storageAdapters = {
keyPath: "key",
store: adapter({
store: throttled(options.throttle || 0, store),
forward: ($data: Record<string, T>) =>
migrate(Object.entries($data).map(([key, value]) => ({key, value})), options),
forward: (data: Record<string, T>) =>
migrate(Object.entries(data).map(([key, value]) => ({key, value})), options),
backward: (data: {key: string, value: T}[]) =>
fromPairs(data.map(({key, value}) => [key, value])),
}),
@@ -148,8 +148,8 @@ export const storageAdapters = {
keyPath: "key",
store: adapter({
store: throttled(options.throttle || 0, store),
forward: ($data: Map<string, T>) =>
migrate(Array.from($data.entries()).map(([key, value]) => ({key, value})), options),
forward: (data: Map<string, T>) =>
migrate(Array.from(data.entries()).map(([key, value]) => ({key, value})), options),
backward: (data: {key: string, value: T}[]) =>
new Map(data.map(({key, value}) => [key, value])),
}),