Closed spereirag closed 9 months ago
Name | Link |
---|---|
Latest commit | 5b8763b717296bf0be44c6a04c98f1a68370c07b |
Name | Link |
---|---|
Latest commit | 4bb217054a66b2edfe1fee79dcb1fbf8fe19419c |
Latest deploy log | https://app.netlify.com/sites/decap-www/deploys/6581b5979795cd0007ac3ac1 |
Summary
My team currently has a fork of decap-cms with several custom plugins, some of them considerably costly in terms of render time. We noticed the render time became unbearably slow when loading a moderately long list (~15 elements) of one of said plugins. After a bit of debugging, we noticed a huge amount of component rerenders while the assets were loading, and the plugin wasn't even visible. The problem is fixed when using the existing prop
isLoadingAsset
to avoid updating the component while the assets are loading. This PR implements that fix.Test plan
yarn test
runs successfullyChecklist
Please add a
x
inside each checkbox: