Skip to content

Commit 387c7b7

Browse files
committed
docs: document createRawRef update helper
1 parent 29f423f commit 387c7b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/svelte-query/src/containers.svelte.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ export function createRawRef<T extends {} | Array<unknown>>(
8484
},
8585
})
8686

87+
/**
88+
* Replaces the proxy-backed top-level keys in place while preserving the original reference.
89+
*/
8790
function update(newValue: T) {
8891
const existingKeys = Object.keys(out)
8992
const newKeys = Object.keys(newValue)

0 commit comments

Comments
 (0)