umco / umbraco-ditto

Ditto - the friendly view-model mapper for Umbraco
http://our.umbraco.org/projects/developer-tools/ditto
MIT License
79 stars 33 forks source link

Feature/undefer #243

Closed Nicholas-Westby closed 5 years ago

Nicholas-Westby commented 5 years ago

This is to potentially address some gremlins I've noticed with Ditto in which it sometimes runs slow and sometimes seems to run the same code multiple times.

I haven't tested this yet. For now, I'm curious if you think this will have any impact. If I get a free moment, I'll test this on some websites I've been working with to see if if affects anything.

This relates to this discussion: https://our.umbraco.com/packages/developer-tools/ditto/ditto-feedback/94330-deferred-execution-causing-repeat-execution

I also noticed some typos that I fixed in this PR.

Nicholas-Westby commented 5 years ago

BTW, some extra context for the changes made:

leekelleher commented 5 years ago

Thanks @Nicholas-Westby! I'll try to take a look over it this week.

Nicholas-Westby commented 5 years ago

Awesome!