message: Tested batch navigation
  React 18 batches by default, so test that only one navigation flushes
diff: -import * as assert from 'assert';
  -import * as mocha from 'mocha';
  +import assert from 'assert';
  +import mocha from 'mocha';
  import { StateNavigator } from 'navigation';
  import { NavigationLink, NavigationHandler, NavigationContext } from 'navigation-react';
  -import * as React from 'react';
  -import * as ReactDOM from 'react-dom';
  +import React, { useContext } from 'react';
  +import ReactDOM from 'react-dom';
  import { act, Simulate } from 'react-dom/test-utils';
  import { JSDOM } from 'jsdom';
  @@ -3004,6 +3004,46 @@ describe('NavigationLinkTest', function () {
  })
  });
  + describe('Batch Navigation', function () {
  + it('should update once', function(){
  + var stateNavigator = new StateNavigator([
  + { key: 's', route: 'r' }
  + ]);
  + var {s} = stateNavigator.states;
  + const Scene = () => {
  + const { stateNavigator, data } = useContext(NavigationContext);
  + return (
  + <div onClick={() => {
  + stateNavigator.navigate('s', {x: 'b'});
  + stateNavigator.navigate('s', {x: 'c'});
  + }}>
  + {data.x}
  + </div>
  + )
  + }
  + s.renderView = () => <Scene />;
  + stateNavigator.navigate('s', {x: 'a'});
  + var container = document.createElement('div');
  + const root = (ReactDOM as any).createRoot(container)
  + act(() => {
  + root.render(
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationContext.Consumer>
  + {({state, data}) => state.renderView(data)}
  + </NavigationContext.Consumer>
  + </NavigationHandler>,
  + container
  + );
  + });
  + var div = container.querySelector<HTMLDivElement>('div');
  + act(() => Simulate.click(div));
  + div = container.querySelector<HTMLDivElement>('div');
  + assert.equal(div.innerHTML, 'c');
  + assert.equal(stateNavigator.stateContext.oldData.x, 'a');
  + assert.equal(stateNavigator.stateContext.data.x, 'c');
  + })
  + });
  +
  /*describe('Click Deferred Navigation Link', function () {
  it('should navigate async', function(done){
  var stateNavigator = new StateNavigator([
  