-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ViewportProvider): allow to update cache for fallback once per
second It is actually possibe that the fallback needs to be accessed more than once per session, e.g. when the listener count gets down to 0 and increases afterwards again. In this case the state should be recreated, but not for every component that requests it. The assumtion is, that this mostly happens on mount and the collector should soon take over, therefore we define a limit of maximum one request per second, to be up to date but don't implement a performance issue. Fixes #10
- Loading branch information
1 parent
0235692
commit 1deba6f
Showing
2 changed files
with
10 additions
and
7 deletions.
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