acdlite / acdlite/redux-router

Failed to do dynamic loading with redux-router

Aperta
#284 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.3k
Fork
194
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Version
2.1.2
## Steps to reproduce
Create a router like below:

```javascript
const rootRouter = {
childRoutes:[{
path:'/root',
component:MainEntry,
childRoutes: [
require('../containers/main_entry')
]
}]
}

return

{rootRouter}

```

but when loading the page, I got below error:

Objects are not valid as a React child (found: object with keys {childRoutes}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.

## Expected Behavior

## Actual Behavior

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.