pappybuck
Run code on component becoming visible for first time
Hey all, I am working on a Tauri application using Solidjs as the frontend framework and am struggling to find a good way to run some code on a component becoming visible for the first time. Ideally, I am trying to make it so this function will run when a list item becomes visible for the first time in order to either download the appropriate image off the internet, or find it on the local disk. I have already created and tested the function to download and check for local images but I am struggling a bit to find a good way to run the function when the component becomes visible. If anyone has any suggestions I would be extremally greatful for any and all help!
11 replies