Skip to content

Global Components Tools (internal package)

Date: 2024-08-06

Status:accepted

Scope

  • [ ] backend
  • [x] playground
  • [x] navigation
  • [x] footer
  • [x] top-level-search
  • [x] contact-module
  • [x] global-components-tools

Context

All our packages have some overlap in helper functions they need (e. g. the function for fetching data from the backend).

Decision

We decided to combine those helper functions in one internal package that gets provided as a standard dependency for every package to make the code more maintainable.

Consequences

The internal package is always installed when a package of the global-components monorepo is installed. It could therefore be the case that different versions of this internal package are lying around. However, this should not be a problem as the package only contains simple helper functions that receive an input and provide an output and do not manipulate any state or similar.