3

I am using Meteor with React. I am using Kadira flowrouter-ssr as my router.

It's so weird. None of my components get their componentDidMount() called.

I found a question which seems like the same issue.

I think React only uses getInitialState() & render() to compile to create the html.

It's weird because it was working before and I deployed a new version, didn't update anything and it stopped working. All I did was add a couple of components.

It works on my local machine so I am sure it's something to do with how it's being compiled.

Other than that I am blank. I have no idea what's up with this.

Community
  • 1
  • 1
nupac
  • 2,459
  • 7
  • 31
  • 56
  • Are you rendering it in a browser or in node.js? Because componentDidMount is called only on client side. – Michal K. Feb 28 '16 at 12:32
  • I'm rendering it in my browser. Works perfectly in dev mode. Problem occurs when i deploy it on a server – nupac Feb 28 '16 at 18:47
  • Can you share some code ? What happens when you push F12 and open the JS console ? – awzx Dec 12 '16 at 00:25

0 Answers0