1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: hydration event should update with every event (#9310)

We were not updating hydration event id. This fixes it.
This commit is contained in:
Jaanus Sellin 2025-02-14 09:35:08 +02:00 committed by GitHub
parent 8de801025f
commit aa15fbee9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,7 @@ describe('RevisionCache', () => {
const hydrationEvent = deltaCache.getHydrationEvent();
expect(hydrationEvent.features).toHaveLength(2);
expect(hydrationEvent.eventId).toEqual(7);
expect(hydrationEvent.features).toEqual(
expect.arrayContaining([
expect.objectContaining({ name: 'my-feature-flag' }),

View File

@ -92,6 +92,7 @@ export class DeltaCache {
break;
}
}
this.hydrationEvent.eventId = appliedEvent.eventId;
}
}
}