import { createModel } from '@rematch/core' import { Diagnostics } from '../../types/diagnostics' import { RootModel } from '.' const defaultState = (): Diagnostics => null export const diagnostics = createModel()({ state: defaultState(), reducers: { updateDiagnostics(state, diagnostics: Diagnostics) { return { ...state, ...diagnostics } } }, effects: {} })