Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(shared): Remove patch for swr-devtools
- Loading branch information
1 parent
14895e2
commit 753f7bb
Showing
5 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/shared': patch | ||
--- | ||
|
||
Removes the patch for disabling swr-devtools causing apps with swr and broswers with the devtools extention to break. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
export const disableSWRDevtools = () => { | ||
if (typeof window !== 'undefined') { | ||
// @ts-ignore | ||
window.__SWR_DEVTOOLS_USE__ = undefined; | ||
} | ||
}; | ||
|
||
export * from 'swr'; | ||
export { default as useSWR } from 'swr'; | ||
export { default as useSWRInfinite } from 'swr/infinite'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters