Skip to content

Commit 67a8784

Browse files
authored
docs(preact-query/utils): pin the preact and React 'useSyncExternalStore' source links to the copied commits (#12288)
1 parent 0064fe8 commit 67a8784

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/preact-query/src/utils.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useEffect, useLayoutEffect, useRef, useState } from 'preact/hooks'
22

33
/**
4-
* This is taken from https://github.com/preactjs/preact/blob/main/compat/src/hooks.js#L8-L54
5-
* which is taken from https://github.com/facebook/react/blob/main/packages/use-sync-external-store/src/useSyncExternalStoreShimClient.js#L84
4+
* This is taken from https://github.com/preactjs/preact/blob/9903119ede99e949d4c146eb42935ee0008caf7f/compat/src/hooks.js#L8-L54
5+
* which is taken from https://github.com/facebook/react/blob/9cdf8a99edcfd94d7420835ea663edca04237527/packages/use-sync-external-store/src/useSyncExternalStoreShimClient.js#L84
66
* on a high level this cuts out the warnings, ... and attempts a smaller implementation.
77
* This way we don't have to import preact/compat with side effects
88
*/

0 commit comments

Comments
 (0)