For example I have two components which use same filter. It is not clear from the styleguide should I duplicate filter code in each module, or move filter to parent/root module? Or create something like common.module to keep reusable code?
From performance point of view keeping filters as separate files in common folder (not in common module) is better because filter will not be included in every bundle.
For example I have two components which use same filter. It is not clear from the styleguide should I duplicate filter code in each module, or move filter to parent/root module? Or create something like common.module to keep reusable code?
From performance point of view keeping filters as separate files in common folder (not in common module) is better because filter will not be included in every bundle.