react-validation icon indicating copy to clipboard operation
react-validation copied to clipboard

Control HOC nothing render before hot reloading

Open jeshio opened this issue 7 years ago • 0 comments

I'm using webpack and webpack-dev-server with HotReplacement. I got this problem:

<Route path="/landing/promo-blocks" exact>
  <Form> /* wrapped to form HOC */
    input
    <Input /> /* wrapped to control HOC */
  </Form>
</Route>

rendered to:

<form class="ui-c-form ">input</form>

My Input for simplify (original has same behaviour) is:

control(() => <span>test</span>)

OK. I can't to understand what this, but more strange, that when I change code and provide hot-reloading - result this:

<form class="ui-c-form ">inputd<span>test</span></form>

after full reload <span>test</span> disappeared again

jeshio avatar Jun 08 '18 10:06 jeshio