Comments (6)
next to that the store needs to be extended. I suspect one could make a class out of NgrxJsonApiStoreResources holding:
- array of resources (ordered access)
- map of the resources (id access)
- pagination settings (offset/limit)
- actions to change pagination
from ngrx-json-api.
maybe queries should be a separate data structure from what currently is already available.
The store could carry two things:
- maps: id => resource
- queries: type, filter, sort, pagination, includes, fields => list of ids
Since we may run multiple queries for the same type, a query should be named to make them addressable.
from ngrx-json-api.
I would then expect to be able to bind a table (like the ones of prime ng) to one of those queries. With actions the table would update sort, filter, etc parameters and get the new contents accordingly.
from ngrx-json-api.
the map would need some garbage collection I guess.
from ngrx-json-api.
I would then expect to be able to bind a table (like the ones of prime ng) to one of those queries. With actions the table would update sort, filter, etc parameters and get the new contents accordingly.
I understand what you mean now by queries in the store, makes sense.
from ngrx-json-api.
Only pagination remains not completed fully.
from ngrx-json-api.
Related Issues (20)
- reducer performance issues for API Success HOT 1
- Resource relationships HOT 2
- Angular 5 problems HOT 4
- API_GET_FAILED does not reset isLoading state
- document filtering and sorting HOT 1
- State does not return to `IN_SYNC` when patching resoruce HOT 5
- No url encoding - causes issues with special characters such as "[" HOT 1
- Support filter=value without path HOT 1
- Not an issue HOT 1
- Optionally add zone to pipes HOT 1
- NgrxJsonApiZoneService applies pending changes in reverse order HOT 2
- Add support of JSON:API Operations HOT 2
- Status of the project HOT 3
- Optional supports for sending changed attributes & relationships only in PATCH operation payload
- Add support for Atomic Operations Extension
- Remove package-lock.json HOT 1
- Send `meta` when creating/updating a resource
- Type mismatch in QueryParams interfaces HOT 1
- Angular 9 Support HOT 4
- Review README of the 9.0.x branch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngrx-json-api.