ngrx-store-freeze icon indicating copy to clipboard operation
ngrx-store-freeze copied to clipboard

Using isDevMode() throws error Function calls are not supported in decorators but 'isDevMode' was called in 'metaReducers'

Open harishajdarevic opened this issue 5 years ago • 0 comments

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

harishajdarevic avatar Sep 12 '19 09:09 harishajdarevic