reselect
reselect copied to clipboard
Investigate TS inference behavior when `state` is being read from current scope
Per https://github.com/elastic/kibana/pull/138818 :
export const hostStatusInfo: (state: Immutable<EndpointState>) => HostStatus = createSelector(
// This used to infer correctly with older Reselect versions?
- (state) => state.hostStatus,
+ (state: Immutable<EndpointState>) => state.hostStatus,
Curious why TS doesn't pick that up okay