Devlog 01
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
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.