Skip to content
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

Signals traits #46

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Signals traits #46

merged 7 commits into from
Apr 4, 2024

Conversation

gabrielguerrero
Copy link
Owner

Implementation of traits for ngrx signals
This is a new package called @ngrx-traits/signals
Implements the following traits

  • withCalls Similar to react query it allows you to define some calls and it adds a loading track and a prop to store it
  • withEntitiesRemoteFilter adds states and methods for remote filtering logic
  • withEntitiesLocalFilter adds states and methods for local filtering logic
  • withEntitiesLocalPagination add states, compute and methods for local pagination
  • withEntitiesRemotePagination add states, compute and methods for remote pagination
  • withEntitiesLocalSort add states and methods needed for local sorting
  • withEntitiesRemoteSort add states and methods needed for remote sorting
  • withEntitiesSingleSelection add states and methods for single selection of entities
  • withEntitiesMultiSelection add states and methods for multi selection of entities
  • withCallStatus add states and methods for handling the loading of state related to a call
  • withLogger great for debugging logs any change to the state

…tures

This is a new package called @ngrx-traits/signals
Implements the following traits

withCalls Similar to react query it allows you to define some calls and it adds a loading track and a prop to store it
withEntitiesRemoteFilter adds states and methods for remote filtering logic
withEntitiesLocalFilter adds states and methods for local filtering logic
withEntitiesLocalPagination add states, compute and methods for local pagination
withEntitiesRemotePagination add states, compute and methods for remote pagination
withEntitiesLocalSort add states and methods needed for local sorting
withEntitiesRemoteSort add states and methods needed for remote sorting
withEntitiesSingleSelection add states and methods for single selection of entities
withEntitiesMultiSelection add states and methods for multi selection of entities
withCallStatus add states and methods for handling the loading of state related to a call
withLogger great for debugging logs any change to the state
@gabrielguerrero gabrielguerrero merged commit 234943e into beta Apr 4, 2024
2 checks passed
Copy link

github-actions bot commented Apr 4, 2024

🎉 This PR is included in version 17.1.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant