fix: remove quick flash with already rendered icons (#7828)

* Fix rapid update with already rendered components

* Added check to not re-render previously rendered icons

* Removed all loaded icons in favor of lazy loaded icons

* Fixed Share icon

* Updated Lucide

* Deleted Eager Icon Imports

* Added AWS Inverted to Lazy Icon Imports

* Added check if name contains a number to kebab case name

* fixed freeze path shortcut

* Added remaining icons to lazy icons mapping

* Removed unused icon mapping, added eager loading react icons, added replacing "icon" with "" on get lucide name

* removed unused import

* Update hook to not be used inside function call

* Updated package-lock
This commit is contained in:
Lucas Oliveira 2025-04-29 13:18:22 -03:00 committed by GitHub
commit ad3bc07733
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 54 additions and 762 deletions

View file

@ -52,7 +52,7 @@
"framer-motion": "^11.2.10",
"fuse.js": "^7.0.0",
"lodash": "^4.17.21",
"lucide-react": "^0.469.0",
"lucide-react": "^0.503.0",
"million": "^3.1.11",
"moment": "^2.30.1",
"moment-timezone": "^0.5.48",
@ -9943,9 +9943,10 @@
}
},
"node_modules/lucide-react": {
"version": "0.469.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.469.0.tgz",
"integrity": "sha512-28vvUnnKQ/dBwiCQtwJw7QauYnE7yd2Cyp4tTTJpvglX4EMpbflcdBgrgToX2j71B3YvugK/NH3BGUk+E/p/Fw==",
"version": "0.503.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.503.0.tgz",
"integrity": "sha512-HGGkdlPWQ0vTF8jJ5TdIqhQXZi6uh3LnNgfZ8MHiuxFfX3RZeA79r2MW2tHAZKlAVfoNE8esm3p+O6VkIvpj6w==",
"license": "ISC",
"peerDependencies": {
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}