dojo / framework

Dojo Framework. A Progressive Framework for Modern Web Apps
https://dojo.io/
Other
585 stars 78 forks source link

defaultRoute=true is not working in Dojo4 in case of StateHistory #195

Closed bipindigits closed 5 years ago

bipindigits commented 5 years ago

Bug / Enhancement

defaultRoute=true attribute is not working in Dojo4 in case of StateHistory.Please see the code sandbox for this issue. Link - https://codesandbox.io/s/oo014r8v8q

Package Version: Dojo 4.0.0

Code

import { StateHistory } from '@dojo/framework/routing/history/StateHistory';

const routingConfig = [ { path: 'home', outlet: 'home', defaultRoute: true }, { path: 'form', outlet: 'form' } ];

const registry = new Registry(); start(); registerRouterInjector(routingConfig, registry, { HistoryManager: StateHistory });

const r = renderer(() => w(App, {})); r.mount({ registry });

Expected behavior:

image

Actual behavior:

image

agubler commented 5 years ago

This has been back ported and released in 4.0.3