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:
parent
8de801025f
commit
aa15fbee9a
@ -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' }),
|
||||
|
@ -92,6 +92,7 @@ export class DeltaCache {
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.hydrationEvent.eventId = appliedEvent.eventId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user