deathBringer
cache function provided in 'solid-router' doesn't work properly when used with Promise.allSettled .
async function populateData(){
const [p1, p2] = await Promise.allSettled([getNewsList(), getAnnouncements()])
}
const getNewsList = cache(async()=> await axiosCustom.get(
/news
))
const getAnnouncements = cache(async() => await axiosCustom.get('/announcements'))
when function 'populateData' used as load function, value of p1 and p2 is same.
is there any way to solve this?6 replies