Closed merthelva closed 1 year ago
Hi @merthelva I am facing similar issue could you please post the solution if you have already got.
Thanks @merthelva
My suggestion would be to ensure nothing is unmounted and remounted accidentally. That could happen if you for example have an element that uses something unstable as key
prop. The React key prop that is.
Make sure your render tree is stable and report back if this issue still occurs.
See if you can reproduce it in CodeSandbox perhaps and send a link.
Hi all 👋 I have encountered with a problem, while injecting your package into my company project. The problem can be observed in the first attached video. Actually, if there is no state update in my component, your package's interface works perfectly well as can be seen in the second attached video, i.e., either using
exit-full-screen
button or pressingEsc
key when in full screen mode do the job. However, changing date for example forces full screen mode to be exited, which is undesirable for my application. I want the full screen mode to be kept in active even if state update occurs. Below, you can see the code snippets where and how I used your package interface within my component file:I am using
react-hook-form
to control my form inputs' behavior and in this component, myDateRangeSelector
component is wrapped withController
component, which is provided byreact-hook-form
package.DateRangeSelector
in this context is the component that you can select Start and End dates for displaying the graph content. When changing Start and/or End date(s), API call inSTEP III
will be resent to the service.I hope I can state my problem as much as possible and it will be clear for you guys. Still, in case of need for more detail, please contact me via my GitHub account.