Skip to content
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(database): store unwrapped snapshots #792

Merged
merged 1 commit into from
Jan 30, 2017

Conversation

cartant
Copy link
Contributor

@cartant cartant commented Jan 26, 2017

Store either unwrapped snapshots or preserved snapshots; don't store
preserved snapshots and call utils.unwrapMapFn when emitting.

Closes #791

Checklist

Description

Fixes #791. The FirebaseListObservable's internal array now stores either snapshots or unwrapped snapshots depending upon the preserveSnapshot option. Between emissions, unchanged elements now refer to the same object instances - which should see significant performance improvements when using Angular's OnPush change detection strategy.

@cartant cartant changed the title fix(database): don't always call utils.unwrapMapFn fix(database): store unwrapped snapshots Jan 26, 2017
Store either unwrapped snapshots or preserved snapshots; don't store
preserved snapshots and call utils.unwrapMapFn when emitting.

Closes angular#791
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.

None yet

3 participants