ngrx-store-freeze
ngrx-store-freeze copied to clipboard
Using isDevMode() throws error Function calls are not supported in decorators but 'isDevMode' was called in 'metaReducers'
Hello,
I would like to use isDevMode() function for metaReducers instead envioronment.production check because I don't want to keep information about pruduction envioronment in in env files.
Here is how my code looks like:
export const metaReducers: MetaReducer<IAppState>[] = isDevMode()
? [storeFreeze]
: [];
Thanks