ecoacoustics / web-components

https://oe-web-components.netlify.app/
MIT License
1 stars 0 forks source link

Optimize tempalte rendering using guard directives #94

Open hudson-newey opened 3 months ago

hudson-newey commented 3 months ago

Guard directives let us pass in dependency arrays to templates that use functions. This prevents re-renders (and therefore performance) that would not result in any changes

lit.dev/docs/templates/directives/#guard


We should also consider using the cache directive to further improve performance