How can I use the FetchingStatus type to create a status variable?
type FetchingStatus = 'idle' | 'loading' | 'succeeded' | 'failed';
const initialState = companyPagesAdapter.getInitialState({
status: 'idle',
perPage: 1,
lastPage: 1
});
The getInitialState function signature is as follows:
getInitialState<S extends object>(state: S): EntityState<T> & S