angular-architects / ngrx-toolkit

Various Extensions for the NgRx Signal Store
MIT License
146 stars 22 forks source link

Add Tanstack Query functionality to the DataService extension #57

Open anthony-b-dev opened 3 months ago

anthony-b-dev commented 3 months ago

I've recently been introduced to Tanstack Query and really like how they automate a lot of the server state synchronization. My only problem with this is that I think NGRX is a much better solution for client-side management, and don't want to have 2 state management libraries holding separate slices of my state.

What are some thoughts on adding Tanstack Query features to the DataService extension to provide loading states, cache invalidation, polling etc.. available out of the box (with opt-in configuration)?

rainerhahnekamp commented 3 months ago

Hi, @anthony-b-dev. Thanks for reaching out. It would of course be great to extend the functionality of the DataService. The only question is who wants to do it, respectively would you have the time?

anthony-b-dev commented 3 months ago

@rainerhahnekamp I would love to do it... unfortunately I'm so new right now I'm confident I wouldn't do a good job. Are you opposed to leaving this open for others to consider and comment on, and then I can revisit once I grow my skills? I think it would be a good addition, but I'll defer to your recommendation.