Yoctol / react-messenger-customer-chat

React component for messenger customer chat plugin
MIT License
272 stars 69 forks source link

Support Nextjs!!? #37

Closed datvtwkm closed 3 years ago

datvtwkm commented 5 years ago

Does this library support Nextjs? I tried to implement but no hope! Thank you!

0104910052 commented 5 years ago

Did you find any workaround?

tao commented 5 years ago

It does work on NextJS, you can use this example: https://gist.github.com/tao/cde323d3652c03803b59d756279c158d

ElegantSoft commented 3 years ago

don't render it till you are on client side

{typeof window !== "undefiend" && <MessengerComponent />}
chentsulin commented 3 years ago

See https://github.com/Yoctol/react-messenger-customer-chat#nextjsssr