packages/hmr-plugin/src/actions/hmr-before-destroy.action.ts

Summary

Maintainability
A
30 mins
Test Coverage
import { NgxsHmrSnapshot } from '../symbols';
 
Similar blocks of code found in 2 locations. Consider refactoring.
export class HmrBeforeDestroyAction {
static get type() {
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
return '@@HMR_BEFORE_DESTROY';
}
 
constructor(public payload: Partial<NgxsHmrSnapshot>) {}
}