Skip to content

Add a persistence manager class #2925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Apr 20, 2020
Merged

Add a persistence manager class #2925

merged 26 commits into from
Apr 20, 2020

Conversation

sam-gc
Copy link
Contributor

@sam-gc sam-gc commented Apr 16, 2020

No description provided.

@sam-gc sam-gc marked this pull request as ready for review April 16, 2020 21:12
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 16, 2020

Binary Size Report

Affected SDKs

No changes between base commit (bcccf36) and head commit (bba5db2).

Test Logs

Comment on lines 24 to 28
export const AUTH_USER_KEY_NAME_ = 'authUser';
export const PERSISTENCE_KEY_NAME_ = 'persistence';
const PERSISTENCE_NAMESPACE_ = 'firebase';

export function persistenceKeyName_(
Copy link
Member

@Feiyang1 Feiyang1 Apr 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have an official rule on prefix _ vs suffix _ for internal functions/constants yet, but I'd like to establish the convention of using prefix _. @firebase/firestore and @firebase/app are already using prefix _ today and the documentation tool we are going to use will flag functions with @internal annotation without prefix _.
WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sg, done

@sam-gc sam-gc requested a review from scottcrossen April 17, 2020 22:39
export const _PERSISTENCE_KEY_NAME = 'persistence';
const _PERSISTENCE_NAMESPACE = 'firebase';

export function persistenceKeyName_(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change to prefix _

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops done

@sam-gc sam-gc merged commit fc45b6c into auth-next Apr 20, 2020
avolkovi pushed a commit that referenced this pull request Apr 22, 2020
avolkovi pushed a commit that referenced this pull request Apr 23, 2020
avolkovi pushed a commit that referenced this pull request Apr 24, 2020
sam-gc added a commit that referenced this pull request May 19, 2020
@firebase firebase locked and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants