New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Server-Side pre-rendering issue with Bar calling JSInterop #1027
Conversation
Looks good. The only issue I have is that by the time OnFirstAfterRenderAsync is executed and you change Visible state, possibly it would need to redraw by calling StateHasChanged. |
Oh yeah, I switched to new branch. From now dev branches are for new stuff, while sup will be used for support of published version(s). |
I thought this too, but it seemed work fine when I tested it (possibly due to the |
I would if I would know what to test 😅. This is your area. For example what is the usage of lastBrokenState? One optimization I think will be good is to have if the Visible need to be changed and then refresh
|
😅 I think I will rename It has two simple rules:
So I think the following code will fit with your suggestion of adding
I will update it! |
Maybe the naming should be Also it could be good to write a comment to explain what it do and why it's used for... |
…r breakpoint management
To me, I have updated with some comments too.. its a difficult thing to explain, so I hope it makes sense 😅 |
I think it's OK now. The comments are for us in the future so we know what's going on :) Good work as always, Thank you! |
* fix: Server-Side pre-rendering issue with Bar calling JSInterop * fix: Add StateHasChanged() and rename lastBrokenState for Vertical bar breakpoint management * fix formating Co-authored-by: Mladen Macanovic <mladen.macanovic@pebble.tv>
@stsrki opening PR as a patch for
dev091
.I can change the target branch if thats not what you want.
Fixes #1026