Skip to content

Conversation

@dgeb
Copy link
Member

@dgeb dgeb commented Aug 11, 2021

Instead of directly tracking a model's _cache, track a new protected property, _isDisconnected, in order to determine when a model has been disconnected from its cache.

This fixes a problem, reported in #359, in which rendered static resultsets would immediately be invalidated when a member was removed.

Note that, with this change, it's still possible to make a model's rendering conditional upon its $isDisconnected property.

Closes #359

Instead of directly tracking a model's `_cache`, track a new protected property, `_isDisconnected`, in order to determine when a model has been disconnected from its cache.

This fixes a problem, reported in #359, in which rendered static resultsets would immediately be invalidated when a member was removed.

Note that, with this change, it's still possible to make a model's rendering conditional upon its `$isDisconnected` property.
@dgeb dgeb merged commit 4f19fd4 into main Aug 11, 2021
@dgeb dgeb deleted the track-disconnected-models branch August 11, 2021 17:07
@dgeb dgeb added the bug label Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Beta 15] Removed from cache errors

2 participants