( attributionSnapshots: AttributionSnapshotMessage[], onUpdateState: (newState: AttributionState) => void, )
| 873 | * Restore attribution state from log snapshots on session resume. |
| 874 | */ |
| 875 | export function attributionRestoreStateFromLog( |
| 876 | attributionSnapshots: AttributionSnapshotMessage[], |
| 877 | onUpdateState: (newState: AttributionState) => void, |
| 878 | ): void { |
| 879 | const state = restoreAttributionStateFromSnapshots(attributionSnapshots) |
| 880 | onUpdateState(state) |
| 881 | } |
| 882 | |
| 883 | /** |
| 884 | * Increment promptCount and save an attribution snapshot. |
no test coverage detected