Skip to content

perf: initialize project data if needed #5478

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

Conversation

janoshrubos
Copy link
Contributor

PR Checklist

What is the current behavior?

projectData gets re-initialized over and over again and the cache has no effect.

What is the new behavior?

Initialize projectData only if it hasn't been initialized yet.

Fixes #5398

@cla-bot cla-bot bot added the cla: yes label Jan 19, 2021
@rigor789 rigor789 merged commit 27c2f0c into NativeScript:master Jan 27, 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.

Optimize ProjectDataService.getProjectData()
2 participants