Skip to content

@atomico/router@3

Latest
Compare
Choose a tag to compare
@UpperCod UpperCod released this 26 May 17:08
· 1 commit to master since this release

The new Atomico router dispatches any asynchronous resolution of load to Atomico's suspense API.

<RouterSwitch>
    <RouterCase default load={()=><Home/>}/>
    <RouterCase path="/config" load={()=><Config/>}/>
</RouterSwitch>

Improvements

RouterCase

  1. default property: ensures this route is executed whenever there is no match with the switch.
  2. stream property: allows rendering each variation within the route without replacing the previous DOM, achieving progressive DOM regeneration.