Skip to content

fix(frame-service): move FrameService provider to NativeScriptModule #1489

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

Merged
merged 2 commits into from
Aug 22, 2018

Conversation

ADjenkov
Copy link
Contributor

@ADjenkov ADjenkov commented Aug 20, 2018

FrameService provider is not singleton when provided through NativeScriptCommonModule (since it is imported for every single module in lazy loaded app).

Moving FrameService to NativeScriptModule in order to be singleton since it is not stateless (holding cached frames collection).

Fix #1484

@ADjenkov ADjenkov added the bug label Aug 20, 2018
@ADjenkov ADjenkov added this to the 6.2 (TBD) milestone Aug 20, 2018
@ADjenkov ADjenkov self-assigned this Aug 20, 2018
@ADjenkov ADjenkov requested a review from vakrilov August 20, 2018 12:03
@ghost ghost added the in progress label Aug 20, 2018
@ADjenkov
Copy link
Contributor Author

cc @NathanWalker

vakrilov
vakrilov previously approved these changes Aug 20, 2018
@ADjenkov ADjenkov merged commit 3b434c9 into master Aug 22, 2018
@ghost ghost removed bug in progress labels Aug 22, 2018
@ADjenkov ADjenkov deleted the djenkov/singleton-frame-sevice branch August 22, 2018 07:52
NathanWalker pushed a commit to NathanWalker/nativescript-angular that referenced this pull request Oct 10, 2018
…ativeScript#1489)

* fix(frame-service): move FrameService provider to NativeScriptModule in order to be singleton

* chore: bump ngtools/webpack version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants