Options
Menu

Interface EnvironmentConfig

Development environment options.

Hierarchy

  • EnvironmentConfig

Properties

Optional checkImmutability

checkImmutability: boolean

Should ActiveJS check and block any attempts of Action and Units' value mutation.

When set to true, if a violation is detected, ActiveJS will throw an error to notify the developer about when and where the violation occurred.

It doesn't work on immutable Units, since immutable Units can't be mutated.

JavaScript's strict mode should be enabled to take full advantage of immutability checks, otherwise some mutation attempts will fail silently.

You should disable this check in production builds, and only use it in development environment. e.g.: In Angular it's as easy as assigning !environment.production to this flag.

default

false

Optional checkSerializability

checkSerializability: boolean

Should ActiveJS check the value of DictUnit, ListUnit and GenericUnit for serializability.

When set to true, if a violation is detected, ActiveJS will throw an error to notify the developer about when and where the violation occurred.

You should disable this check in production builds, and only use it in development environment. e.g.: In Angular it's as easy as assigning !environment.production to this flag.

default

false

Optional checkUniqueId

checkUniqueId: boolean

Should ActiveJS check the uniqueness of ids assigned to ActiveJS constructs.

When set to true, if a violation is detected, ActiveJS will throw an error to notify the developer about when and where the violation occurred.

You should disable this check in production builds, and only use it in development environment. e.g.: In Angular it's as easy as assigning !environment.production to this flag.

default

false

Optional logLevel

logLevel: LogLevel

Logging level for ActiveJS logs, it controls which type of logs get logged to the browser console.

It doesn't affect any errors thrown by ActiveJS.

default

LogLevel.NONE