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

can we have something similar to fresh() for the axios plugin? #1885

Open
1 of 2 tasks
vesper8 opened this issue Jul 4, 2024 · 2 comments
Open
1 of 2 tasks

can we have something similar to fresh() for the axios plugin? #1885

vesper8 opened this issue Jul 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@vesper8
Copy link

vesper8 commented Jul 4, 2024

Describe the feature

Im talking about this: https://pinia-orm.codedredd.de/guide/repository/inserting-data#replacing-whole-data

When making use of the axios plugin sometimes we want to append data to existing records, and sometimes we want to overwrite all. Currently there seems to be no simple way to achieve this. Would be nice if there was.

Thank you!

Additional information

  • Would you be willing to help implement this feature?

Final checks

@CodeDredd CodeDredd added enhancement New feature or request and removed pending triage labels Jul 8, 2024
@CodeDredd
Copy link
Owner

Ok i try to ad something.

@vesper8
Copy link
Author

vesper8 commented Aug 15, 2024

Ok i try to ad something.

Yes please.. I'm really suffering because of the lack of this feature. If another user deletes an item, the next time the API is called that deleted item is no longer returned, but because of the caching layer I'm using it's still visible in other user's browsers.. and it's quite tricky to deal with this problem.

The ideal solution is that whatever is returned by the API should be the new truth and it should overwrite previous records, including replacing ones that are no longer returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants