angular-ngrx-data | experimental ngrx-data helper | Reactive Programming library
kandi X-RAY | angular-ngrx-data Summary
kandi X-RAY | angular-ngrx-data Summary
This repository is now merged with @ngrx into @ngrx/data. You can find the ngrx/data docs here and the github repository with ngrx/data in it here.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-ngrx-data
angular-ngrx-data Key Features
angular-ngrx-data Examples and Code Snippets
Community Discussions
Trending Discussions on angular-ngrx-data
QUESTION
I'm very new to ngrx-data and I'm try to detect why loading a few records is taking so long
Here is how I subscribe to the ngrx-data entities:
...ANSWER
Answered 2021-Dec-31 at 16:26If everything else you do app-wide with the returned data works as expected and you just need the data once in the given page/context, you can try to add a pipe(take(1))
to subscription [with import { take } from 'rxjs/operators';
], to be sure you're getting just the first value emitted. See more at https://rxjs.dev/api/operators/take
QUESTION
I have few concerns when using ngrx in mobile app with Ionic 5:
Performance issues on mobile devices. = ngrx is state management so all data from API will be stored in memory and accessible all the time. Could this effect some older devices(e.g. android 4.4)?
Too much ngrx boilerplate can increase app bundle size.
Can't use ngrx/data due to a lot of limitations..
ngrx is 3rd party library. Is it 100% compatible with Ionic Angular?
Is there anyone out there who has faced the similar issues?
...ANSWER
Answered 2020-Apr-08 at 15:09I've used Ionic, I'm using NgRx in Angular projects but never needed to use them together.
Yet, I believe it is a good choice (quite recommended) to use NgRx for state management in an Ionic-Angular project.
- Nowadays, devices have enough resources to handle an NgRx store state management just as React Native apps use Redux, so I wouldn't worry about that.
- Depending on the complexity of your app it can increase the bundle size, but not in a critical manner, especially if the build is treeshakeable
- can't share an opinion over this
- yes it is. You can check this article to get an insight
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-ngrx-data
The demo app is based on the Angular CLI. You may want to install the CLI globally if you have not already done so.
Clone this repository git clone https://github.com/johnpapa/angular-ngrx-data.git cd angular-ngrx-data
Install the npm packages npm install
Build the ngrx-data library npm run build-setup
Serve the CLI-based demo app ng serve -o
The demo app is setup to build and run against the ngPackagr artifacts in dist/ngrx-data, the same artifacts delivered in the npm package. Re-build the library npm run build-lib or npm run build-setup or npm run build-all to update these artifacts. This approach, while safe, can be inconvenient when you're evolving the library code because "Go to definition" takes you to the d.ts files in dist/ngrx-data rather than the source files in lib/src. If you want to "Go to definition" to take you to the source files, make the following *temporary changes to the TypeScript configuration.
Replace the paths target in the root tsconfig.json so that the IDE (e.g., VS Code) looks for ngrx-data in src/lib. "paths": { "ngrx-data": ["lib/src"] },
Replace that same setting in the config at src/tsconfig.json.
Replace that same setting in src/client/tsconfig.app.json. Now ng build references src/lib when it builds the demo app.
If you are on Windows and run into this error during npm install: "snyk couldn't patch the specified vulnerabilities because gnu's patch is not available", refer to this issue for the fix. In short, your Git installation is not correct or C:\Program Files\Git\usr\bin (typically) is not added to your system environment variable %PATH%.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page