Skip to content

Commit 2f96d36

Browse files
committed
docs: structuralSharing 제외
1 parent f5d79b7 commit 2f96d36

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -680,19 +680,6 @@ const { data, dataUpdatedAt } = useQuery({
680680

681681
<br />
682682

683-
### structuralSharing
684-
685-
- structuralSharing: `boolean | (<T>(oldData: T | undefined, newData: T) => T)`
686-
- 기본값은 `true`
687-
- 쿼리 결과값은 `structural sharing`을 사용하여 **실제로 데이터가 변경된 부분**만 레퍼런스가 변경되는데, `false`로 설정할 경우 이 기본 동작이 disable된다.
688-
- [Important defaults](https://tanstack.com/query/v4/docs/react/guides/important-defaults)
689-
- [structural sharing 개념](https://blog.klipse.tech/javascript/2021/02/26/structural-sharing-in-javascript.html)
690-
- 이전 데이터와 새 데이터를 비교하는 함수를 직접 작성하여 설정할 수 있다.
691-
- 참고: 기본 동작은 다음 함수를 활용하여 `structural sharing`을 적용한다.
692-
- [replaceEqualDeep](https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L218)
693-
694-
<br />
695-
696683
## Parallel
697684

698685
[목차 이동](#주요-컨셉-및-가이드-목차)

0 commit comments

Comments
 (0)