3 ms·
feature/shared/utils/foo.ts feature/shared/utils/format-date.ts feature/shared/ux/(template|region|etc)/foo.ts Where ux are for components that may be
by tracker1 2y ago
feature/shared/utils/foo.ts
feature/shared/utils/format-date.ts
feature/shared/ux/(template|region|etc)/foo.ts
Where ux are for components that may be referenced in multiple areas, or generic templates, etc. and shared are for utility methods, functions, etc.
- whalesalad 2y agoI think the op is asking more on if a util is used across many features
- garrettgrimsley 2y agotracker1 is saying that in that case there would be a feature named shared, which other features then reference.
- tracker1 2y agoyes... though, unlike above, I might be inclined to name the directory "!shared" to pump sorting to the top, which may feel weird/awkward.