Created
October 6, 2020 06:31
-
-
Save pushkar100/852c4da0ed30ec2bd7db16eb98b3dce0 to your computer and use it in GitHub Desktop.
Side effects and live bindings output example
This file contains hidden or 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
| /* What will happen if state is duplicated (i.e maintains two states which is wrong!) */ | |
| // Console output: | |
| Loaded module | |
| A 0 | |
| Loaded module | |
| B 0 | |
| /* What happens when aggregation preserves state (as it should be and as it happens with webpackExports) */ | |
| // Console output: | |
| Loaded module | |
| A 0 | |
| B 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment