@ngpat/store
TypeScript icon, indicating that this package has built-in type declarations

17.0.2 • Public • Published

@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

Using Connect / Disconnect Actions

Demo Site

See ng-patterns.web.app

All Ngpat Libraries

Readme

Keywords

none

Package Sidebar

Install

npm i @ngpat/store

Weekly Downloads

2

Version

17.0.2

License

MIT

Unpacked Size

1.68 MB

Total Files

261

Last publish

Collaborators

  • jorta-giga