andreypopp / andreypopp/react-async

object is not a function

Aperta
#47 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
440
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello.

I'm trying to use this with https://github.com/koba04/react-boilerplate

But I'm getting an error saying:

```
Artist = (0, _reactAsync2['default'])(MyComponentObservables)(Artist) || Art
^
TypeError: object is not a function
```

from this

```
function MyComponentObservables(props) {
return {
user: defineXHRObservable(`/api/user`)
}
}
@Async(MyComponentObservables)
export default class Artist extends React.Component {
```

Any ideas?

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.