Open krajasekhar opened 5 years ago
I didn't repro
also, stackblitz does not work for me (¯\_(ツ)_/¯
)
I moved the example to codesandbox: https://codesandbox.io/s/reacteasyprintissue41-2160b
Same issue.
@a-x- open your link on codesandbox and change from <Print printOnly>
to <Print name='printName'>
and you will see this errors in Chrome console:
Warning: Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of r.
I am trying to use this module in my project. But it is giving below errors.
printProvider
is marked as required inPrint
, but its value isundefined
.3.Uncaught Invariant Violation: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
https://stackblitz.com/edit/raju-print