@ngpat/store
v17.0.2
Published
Custom stores. Some stores augment NgRx, some are standalone for extreme performance. Common firebase utilities to facilitate connections with firestore and integrations with NgRX.
Downloads
101
Readme
@ngpat/store
Custom stores. Some stores augment NgRx, some are standalone for extreme performance. Common firebase utilities to facilitate connections with firestore and integrations with NgRX.
Adding Ngpat Firebase Ngrx State
In your app root module, add to Root Store amd Effects classes.
import {NgModule} from '@angular/core';
import { StoreModule } from '@ngrx/store';
import {EffectsModule} from '@ngrx/effects';
import {
NG_PAT_FIREBASE_ROOT_REDUCERS,
NG_PAT_FIREBASE_ROOT_STATE_INITIALIZERS,
NG_PAT_FIREBASE_ROOT_EFFECTS
} from '@ngpat/store';
@NgModule({
imports: [
StoreModule.forRoot(
{
...NG_PAT_FIREBASE_ROOT_REDUCERS
},
{
initialState: {
...NG_PAT_FIREBASE_ROOT_STATE_INITIALIZERS
}
}
),
EffectsModule.forRoot([
...NG_PAT_FIREBASE_ROOT_EFFECTS
])
]
})
export class AppMoule {
}
Writing a getService to connect to firestore
TODO docs
Using the CustomFireStoreService
TODO docs
Add Authentication app
TODO docs