Open ethan-tbd opened 2 months ago
.take
Thanks for taking this issue! Let us know if you have any questions!
@ethan-tbd,
I have implemented a solution that closely matches your requirements. You can find the example code here:
Flutter Caching Hook GitHub Repository
Please review it and let me know if it meets your needs. Additionally, I've provided a recording of the implementation for your reference:
Approach:
please create a pr to include this request caching service in the lib/shared
folder!
@aashish-g03 Hey there! I'm just checking up if you were able to create a PR or if you need some help. Your effort wont be counted for hacktoberfest if you don't create a PR, and I want to make sure you get credit!
Thank you for the reminder, @blackgirlbytes! I’ll create a PR and share it with you shortly.
Just checking back in on your PR, @aashish-g03 . Let us know if you need any help or have any questions! ❤
@taniashiba, I have submitted a PR with the requested service. Apologies for the slight delay, as I took the time to thoroughly refine the code, enhancing both readability and ensuring it is production-ready. I appreciate your patience, and I would like to extend a special thanks to @blackgirlbytes, @taniashiba, and @ethan-tbd for your support throughout the process.
Working through this repository has been an invaluable learning experience, offering deep insights into GitHub automations, code structure, the use of hermit, command executions, and maintaining high standards of code quality.
I am eager to contribute further to projects within the organization, particularly with Flutter or other intriguing technologies. If there are additional feature requests or areas where I can assist, I would be happy to help. Thank you once again for this opportunity.
This request caching service will be used to:
url
url
url
url
callers of this will get two responses, like a stream of data where the first response is the cached response and the second response is the network response
perhaps using this as a custom hook similar to https://tanstack.com/query/latest