-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Poor performance #1357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see this issue was solved in the Svelte package, but why aren't there |
@nepentheus no idea personally. Is this something you'd be able to submit a PR for? |
This should solve @ethancrawford @nepentheus #1359 |
Besides transforming imports, another performance improvement for React is to patch diff --git a/node_modules/@tabler/icons-react-native/dist/esm/createReactNativeComponent.mjs b/node_modules/@tabler/icons-react-native/dist/esm/createReactNativeComponent.mjs
index a5bc806..3346606 100644
--- a/node_modules/@tabler/icons-react-native/dist/esm/createReactNativeComponent.mjs
+++ b/node_modules/@tabler/icons-react-native/dist/esm/createReactNativeComponent.mjs
@@ -5,7 +5,7 @@
* See the LICENSE file in the root directory of this source tree.
*/
-import { forwardRef, createElement } from 'react';
+import { forwardRef, createElement, memo } from 'react';
import defaultAttributes, { childDefaultAttributes } from './defaultAttributes.mjs';
import * as NativeSvg from 'react-native-svg';
@@ -45,7 +45,7 @@ const createReactNativeComponent = (type, iconName, iconNamePascal, iconNode) =>
}
);
Component.displayName = `${iconNamePascal}`;
- return Component;
+ return memo(Component);
};
export { createReactNativeComponent as default }; This is for the |
i believe that you should open a dedicated issue for this because you suggest a way to improve the runtime performance, and here we discuss poor development tooling responsibility |
i'll test if it helps, but, maybe, subpath exports are still more optimal for some cases? |
Because everything is exported from a single entry, the tooling has to process huge entry files containing all icons, which is especially insufferable in the development mode when HMR does not hit. This makes refreshes long and causing freezes on my laptop. Please provide dedicated import specifiers for icons, this should be simple and I'm willing to help
The text was updated successfully, but these errors were encountered: