Skip to content

Commit

Permalink
just sleep 500ms for now to work around startup race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Sep 12, 2024
1 parent c487a6e commit caac379
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface Window {

if (!window.SP_REACT) {
console.debug('[Decky:Boot] Setting up Webpack & React globals...');
await new Promise((r) => setTimeout(r, 500)); // Can't use DFL sleep here.
// deliberate partial import
const DFLWebpack = await import('@decky/ui/dist/webpack');
window.SP_REACT = DFLWebpack.findModule((m) => m.Component && m.PureComponent && m.useLayoutEffect);
Expand Down

0 comments on commit caac379

Please sign in to comment.