drcmda / react-contextual

🚀 react-contextual is a small (less than 1KB) helper around React 16s new context api
MIT License
642 stars 23 forks source link

server side render support? #12

Closed hardfist closed 6 years ago

hardfist commented 6 years ago

It seems that the library doesn't support server side render support, I can't get props from store in subscribe components in server side render

drcmda commented 6 years ago

@hardfist Do you know what it should do in order to support it? I have not much experience with SSR.

drcmda commented 6 years ago

@hardfist Actually, i looked over everything again and i'm pretty sure now that Reacts server renderer simply isn't equipped for the new context api yet. It should start working by itself. You might try it with react@next and react-dom@next as well, there's a good chance they've already completed it.

hardfist commented 6 years ago

@drcmda sorry,It seems that I make something wrong, It works perfectly on SSR!