-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: defer automatic
clear
call on autoLoadEntities
cache done on…
… shutdown When the `addEntity` is called next, the storage will be cleared automatically before it. We want to keep the cache, as it's populated on require time, but sometimes (tests) the contexts could be cleared. This resolves both cases by deferring the `clear` call to the first `addEntity` call.
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters