Description
The findStateAtEvent method in StateService is marked with a TODO comment indicating it should be removed.
Location: packages/federation-sdk/src/services/state.service.ts (around line 897)
Current State
The method is marked with // TODO: remove this and currently wraps getStateAtEvent.
Suggested Migration Path
- Add a JSDoc
@deprecated annotation to the method pointing users to getStateAtEvent
- Identify and migrate all callers to use
getStateAtEvent directly
- Remove commented-out tests in
state.service.spec.ts that reference this TODO
- Remove the method once all migrations are complete
Context
Description
The
findStateAtEventmethod inStateServiceis marked with a TODO comment indicating it should be removed.Location:
packages/federation-sdk/src/services/state.service.ts(around line 897)Current State
The method is marked with
// TODO: remove thisand currently wrapsgetStateAtEvent.Suggested Migration Path
@deprecatedannotation to the method pointing users togetStateAtEventgetStateAtEventdirectlystate.service.spec.tsthat reference this TODOContext