Professional Documents
Culture Documents
Most of the time, getters will only rely on the state, however, they might need to
use other getters. Because of this, we can get access to the whole store instance
through this when defining a regular function but it is necessary to define the
type of the return type (in TypeScript). This is due to a known limitation in
TypeScript and doesn't affect getters defined with an arrow function nor getters
not using this