mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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(); |         const hydrationEvent = deltaCache.getHydrationEvent(); | ||||||
|         expect(hydrationEvent.features).toHaveLength(2); |         expect(hydrationEvent.features).toHaveLength(2); | ||||||
|  |         expect(hydrationEvent.eventId).toEqual(7); | ||||||
|         expect(hydrationEvent.features).toEqual( |         expect(hydrationEvent.features).toEqual( | ||||||
|             expect.arrayContaining([ |             expect.arrayContaining([ | ||||||
|                 expect.objectContaining({ name: 'my-feature-flag' }), |                 expect.objectContaining({ name: 'my-feature-flag' }), | ||||||
|  | |||||||
| @ -92,6 +92,7 @@ export class DeltaCache { | |||||||
|                     break; |                     break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |             this.hydrationEvent.eventId = appliedEvent.eventId; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user