Skip to content

Commit

Permalink
feat(ui): patch reselect to use lruMemoize only
Browse files Browse the repository at this point in the history
Pending resolution of reduxjs/reselect#635, we can patch `reselect` to use `lruMemoize` exclusively.

Pin RTK and react-redux versions too just to be safe.

This reduces the major GC events that were causing lag/stutters in the app, particularly in canvas and workflow editor.
  • Loading branch information
psychedelicious committed Jan 5, 2024
1 parent 192088b commit bad06f4
Show file tree
Hide file tree
Showing 3 changed files with 258 additions and 6 deletions.
9 changes: 7 additions & 2 deletions invokeai/frontend/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@fontsource-variable/inter": "^5.0.16",
"@mantine/form": "6.0.21",
"@nanostores/react": "^0.7.1",
"@reduxjs/toolkit": "^2.0.1",
"@reduxjs/toolkit": "2.0.1",
"@roarr/browser-log-writer": "^1.3.0",
"chakra-react-select": "^4.7.6",
"compare-versions": "^6.1.0",
Expand All @@ -94,7 +94,7 @@
"react-i18next": "^14.0.0",
"react-icons": "^4.12.0",
"react-konva": "^18.2.10",
"react-redux": "^9.0.4",
"react-redux": "9.0.4",
"react-resizable-panels": "^1.0.7",
"react-select": "5.8.0",
"react-textarea-autosize": "^8.5.3",
Expand Down Expand Up @@ -167,5 +167,10 @@
"vite-plugin-dts": "^3.7.0",
"vite-plugin-eslint": "^1.8.1",
"vite-tsconfig-paths": "^4.2.3"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
Loading

0 comments on commit bad06f4

Please sign in to comment.