nkbt / component-router

Redux-based component routing solution
https://nkbt.github.io/component-router
MIT License
93 stars 7 forks source link

Upcoming API changes #51

Closed nkbt closed 9 years ago

nkbt commented 9 years ago

These should be possible:

  1. No need for container element, just render component if it is not provided

    <InFlux namespace="sidebar" config={{
     open: SidebarOpened,
     close: SidebarClosed
    }} />
  2. Instead of passing Smart container to the config, pass it as child

    Instead of

    <InFlux namespace="sidebar" config={Container} />

    Should be

    <InFlux namespace="sidebar">
     <Container what={ever} />
    </InFlux>

    So we can have nesting and pass some props.

  3. Having (2) in place, we would be able to specify config with default value.

    <InFlux namespace="sidebar" config={{[getDefault()]: 'open'}}>
     <Container />
    </InFlux>
nkbt commented 9 years ago

1. Moved to #61

nkbt commented 9 years ago

2. Remove pathname #64 (there is a react-router for that)