Skip to content

Optimizations for re-rendering #149

@enkelmedia

Description

@enkelmedia

Which Umbraco.Community.BlockPreview version are you using?

4.0.3

Which Umbraco version are you using? For example: 10.4.0 - don't just write v10

16.2.0

Bug summary

I've noticed that, e.g., during a drag operation, there will be a re-rendering from the server even if the content did not change. This re-rendering has a timeout of 500ms, which is kind of noticeable.

Image

Steps to reproduce

Drag and drop blocks that are rendered on the server

Expected result / actual result

I would be interested in helping explore options here and maybe contributing a PR around this, but I was hoping for some context to avoid regressions.

Is there a special reason as to why the timeout is 500ms in the update method of the block-grid-preview.custom-view.element.ts?

I have not looked into the exact details, but in an ideal world, we would avoid having to re-render a block if nothing has changed. Is this something that has been considered and rejected, or do you think it would be worth exploring? I would be happy to if this is interesting on your end.

#h5yr!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions