Forum Discussion
White screen when turning pages
- 2 years ago
Ah, thanks for confirming more details. Yes, this seems to be an issue with the developer visual, where it sometimes doesn't seem to initialise correctly. You can do something like resize the visual or change a property on the container to force it to initialise correctly on that occasion. When your visual is packaged, this doesn't happen and it works as expected.
Hi Anonymous,
Without any code, capabilities or dataset details it will not be possible to say what is wrong from the supplied screenshots. The only thing I can say for sure is that some portion of the code is causing an error and your visual is crashing.
Have you attempted any debugging so far? What errors does the JavaScript console report? This will help you to start finding the root cause, as the error will likely point to the line causing the error. You can also try using a debugger statement in your code to step through and find where errors may occur.
If you have followed these steps and nothing obvious is sticking out, then we can try to dig a bit deeper. Please note that these kinds of problems can take many hours for another developer to review, which can be a large undertaking for a forum member providing free support. To get this answered more quickly, please supply as much contextual information as possible, ideally:
- Details or screenshots of console errors.
- Specific location in your code you believe the error might be localized to (if you know).
- A copy of your project's files (ideally a repo that can be cloned with minimal setup).
Regards,
Daniel
hello, sorry for my delay, I thinks it not a bugs, because this code I copy in Microsoft template chart visuals, and this is my link code : https://github.com/ThuThuy103/powerbi-chart
In my code, I console "constructor" and "update" in func constructor and update. This is my video what I do in my custom visual : https://vimeo.com/907392033?share=copyhttps://vimeo.com/907392033?share=copy
When I change page 1 to page 2 and back to page 1. My update func is not called and it show white background. I dont khow why.