TodoApp
- 2 Devlogs
- 2 Total hours
im gonna fetch all nasa's data mwahaha...
im gonna fetch all nasa's data mwahaha...
Added fetch image content.
Ok so i tryed to add a function that is triggered when the page is loaded. It checks if is on local storage, if no or if it is but the date is different it fetches a new one to update and overwrite the old one. After that, the code is injected into a reactive property of vue so the image will render again in any change. The app will be a todo app with a custom background.
I had a lot of headache as this is my first time working seriouslly with typescript. It obligated me to handle a case weather the image is not on local storage and it couldn’t be fetched… i just returned a empty object lol
I’m not gonna change that but i will ask AI if this was a good practice. prob not, but lets seee