force full render / avoid differential render flag
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I’m doing drag-and-drop using js, which does manipulate the DOM, and after StateHasChanged()
it won’t render correctly.
I can avoid DOM manipulations (revert some necessary DOM changes) but this will create a blink effect after Drop.
Describe the solution you’d like
<div @ForceFullRender="@boolValue"></div>
Additional context
my current drag-and-drop where I avoid manipulating DOM, and getting Blink https://imgur.com/d0DX1A7
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
blazor force full render instead of differential render
I am trying to display images using this masonry js package but I am having difficulties. I have an image upload form. The...
Read more >Render Flag & Display Flag | Forums
If you want lesser detail on the objects being instanced, you need to separate the display/render flags in the object that you're instancing, ......
Read more >Hydration
Hydration is the process that restores the server side rendered application on the client. This includes things like reusing the server rendered DOM ......
Read more >A High Quality Render of the Commonwealth Flag : r/Stellaris
The full render (not featured here) is a fully-animated, HD video of the Commonwealth flag waving in the breeze.
Read more >Photon Parameterisation for Robust Relaxation Constraints - PMC
This paper presents a novel approach to detecting and preserving fine illumination structure within photon maps. Data derived from each photon's primal ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I understand, however couldn’t reasonably guarantee that Blazor will always notify you before everything it will do as we add more features in the future.
What you’re doing with mutating the DOM outside Blazor is definitely unsupported. However while you’re doing unsupported things, you could go further and patch
Blazor._internal.renderBatch
. For example:Note that you have to use
autostart=false
like this to be able to patch the internals. At least I think this will work, but haven’t tested it.@SteveSandersonMS I managed to get
refreshIndex
method working, so no more blinking, now I’m binding the js from outside the refreshed div, kind of like$(document).on(event, selector,
instead of$(selector).on(event
The only problem now is that all the scrollbars go back to0
after refresh, so I have to choose now between, blink and scrollbars reset.