-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: memoize HMR, strict check constructors (#2757)
* fix: memoprop and hmr * refactor(RTTR): get memoized props from instance fiber * refactor(RTTR): exclude instance props from snapshot * fix(RTTR): prefer live props * refactor: remove memoizedProps changes To be picked into another PR --------- Co-authored-by: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com>
- Loading branch information
1 parent
9fa261e
commit 27d7164
Showing
5 changed files
with
492 additions
and
229 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { defineConfig } from 'vite' | ||
import reactRefresh from '@vitejs/plugin-react-refresh' | ||
import react from '@vitejs/plugin-react' | ||
|
||
export default defineConfig({ | ||
optimizeDeps: { | ||
exclude: ['@react-three/fiber'], | ||
}, | ||
plugins: [reactRefresh()], | ||
plugins: [react()], | ||
}) |
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
Oops, something went wrong.