( attributionSnapshots: AttributionSnapshotMessage[], onUpdateState: (newState: AttributionState) => void, )
| 932 | * Restore attribution state from log snapshots on session resume. |
| 933 | */ |
| 934 | export function attributionRestoreStateFromLog( |
| 935 | attributionSnapshots: AttributionSnapshotMessage[], |
| 936 | onUpdateState: (newState: AttributionState) => void, |
| 937 | ): void { |
| 938 | const state = restoreAttributionStateFromSnapshots(attributionSnapshots) |
| 939 | onUpdateState(state) |
| 940 | } |
| 941 | |
| 942 | /** |
| 943 | * Increment promptCount and save an attribution snapshot. |
no test coverage detected