-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improving code-splitting * Fixing import
- Loading branch information
1 parent
b784fb6
commit cbde739
Showing
5 changed files
with
22 additions
and
22 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* This should only ever be modified on the client otherwise it'll | ||
* persist through server requests. If we need instanced states we | ||
* could lazy-init via root. | ||
*/ | ||
export const globalProjectionState = { | ||
/** | ||
* Global flag as to whether the tree has animated since the last time | ||
* we resized the window | ||
*/ | ||
hasAnimatedSinceResize: true, | ||
|
||
/** | ||
* We set this to true once, on the first update. Any nodes added to the tree beyond that | ||
* update will be given a `data-projection-id` attribute. | ||
*/ | ||
hasEverUpdated: false, | ||
} |