-
Notifications
You must be signed in to change notification settings - Fork 960
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
Updating custom-mapping.json make the application very slow to load #855
Comments
Are you sure this is custom mapping issue? We use it in every side project and looks like this is a first issue with it. It simply performs lodash.merge with the future processing of the resulting mapping. However, can you please provide more info on the device you're running the application and more information about the environment. Does it run with Expo? |
Hello, Here are those lines
This is custom-mapping.js, not json, but I tried to use json and I had the same issue. To be sure that those lines was involved, I was using this process:
I tried multiple times to add and remove those lines and I'm sure that it adds more that 40 seconds to the initialization time. Note that It's not running with Expo. |
@dendico any chance to have a look on App.js? Do you use React Native Navigation? |
Hello @artyorsh To run it: You should see a white screen during 13 seconds before seeing the Welcome message. Thanks for taking your time to answer :) |
@qlerebours I was not able to run your application because it looks like you forgot to remove some dependencies from the native side, so in order to get rid of this, I just took your theme and mapping and put it into my application. You guys did a lot of customization. However, when I remove a Button from custom mapping it takes much less time to process it. It will take me a lot of time to see what exactly is done wrong in Button mapping. Do you really need all of this in mapping and it could not be handled by modifying theme variables? Btw, we're going to update the processing engine to get rid of runtime calculations. It may be available in the next major update because it can lead to breaking changes. As for now, if you need a fix as soon as possible, I can suggest you this workaround. |
Hello @artyorsh ! I think we already customized as far as we could the theme variables but yes, we needed most of the modifications made into the mapping file. We will check to implement this suggested workaround and then share here the results, thank you again! |
It's not resolved for me in v4.4.1 as explained here: #613 (comment) Dark forces say you should read the docs (or changelog) more accurately |
same issue i'm facing. app loads to slow taking 4-5 seconds extra |
🐛 Bug Report
After having updated the
custom-mapping.json
file, our loading time jumped from few seconds to approximatively 15 ! In our modifications possibly involved, we pointed :states
variants intoButton
component mapping (verified)To Reproduce
states
on Buttons component mapping incustom-mapping.json
for exampleExpected behavior
The application compile and load with no more significant delay
UI Kitten and Eva version
Environment information
The text was updated successfully, but these errors were encountered: