🚀🚀
Size: a a a
🚀🚀
c
🚀🚀
🚀🚀
🚀🚀
c
c
c
🚀🚀
🚀🚀
c
m
c
🚀🚀
c
c
🚀🚀
c
🚀🚀
const photoLoadFx = createEffect()
const pendingPhotos = createStore([])
.on(photoLoadFx, (list, id) => [...list, id])
.on(photoLoadFx.finally, (list, {params: id}) => list.filter(
e => e !== id
))
const Photo = ({id}) => {
const pending = useStoreMap({
store: pendingPhotos,
keys: [id],
fn: list => list.includes(id)
})
}