Skip to content

Instantly share code, notes, and snippets.

@yinonov
Created February 11, 2019 09:29
Show Gist options
  • Save yinonov/7287b94ac897fe178939cc0143157815 to your computer and use it in GitHub Desktop.
Save yinonov/7287b94ac897fe178939cc0143157815 to your computer and use it in GitHub Desktop.
code example for preserving cart state article
onLoad$ = return this.auth.user$.pipe(
take(1), // we only do this once as we only want to handle the initial load
...
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment