diff options
| author | AAGaming <aagaming@riseup.net> | 2025-10-15 00:31:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 00:31:12 -0400 |
| commit | 44bb023b804b0ab360214360a3947935fb41c86c (patch) | |
| tree | f1313a32a16297fcaadecc3ba3eb2e21dec4ddb7 /frontend/src/components/WithSuspense.tsx | |
| parent | 86b5567d4eac84399245c9a71270d6142ee54ded (diff) | |
| download | decky-loader-44bb023b804b0ab360214360a3947935fb41c86c.tar.gz decky-loader-44bb023b804b0ab360214360a3947935fb41c86c.zip | |
React 19 support (#818)v3.2.0-pre1v3.2.0
Diffstat (limited to 'frontend/src/components/WithSuspense.tsx')
| -rw-r--r-- | frontend/src/components/WithSuspense.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/WithSuspense.tsx b/frontend/src/components/WithSuspense.tsx index 153bec8d..d6281e3e 100644 --- a/frontend/src/components/WithSuspense.tsx +++ b/frontend/src/components/WithSuspense.tsx @@ -10,7 +10,7 @@ interface WithSuspenseProps { const WithSuspense: FunctionComponent<WithSuspenseProps> = (props) => { const propsCopy = { ...props }; delete propsCopy.children; - (props.children as ReactElement)?.props && Object.assign((props.children as ReactElement).props, propsCopy); // There is probably a better way to do this but valve does it this way so ¯\_(ツ)_/¯ + (props.children as ReactElement<any>)?.props && Object.assign((props.children as ReactElement<any>).props, propsCopy); // There is probably a better way to do this but valve does it this way so ¯\_(ツ)_/¯ return ( <Suspense fallback={ |
