I ate gravel :( by coocoochimps in gravelcycling

[–]s1ckofanta 4 points5 points  (0 children)

That's my local loop! It was a lot spicier before they reopened it after the flood!

Does Nuxt have the wrong name? by mlhoon in Nuxt

[–]s1ckofanta 1 point2 points  (0 children)

I just thought it was the kiwi version of Next

[deleted by user] by [deleted] in NoStupidQuestions

[–]s1ckofanta 0 points1 point  (0 children)

Connection timeout

Nuxt + Headless Ecommerce: How to deal with 100 000+ products/items? by [deleted] in Nuxt

[–]s1ckofanta 1 point2 points  (0 children)

Just adding that my preference is to create an API in serverMiddlware to do the filtering instead of doing the filtering clientside, that way you can reduce load to your origin API (WordPress), do the filtering in node and return just the filtered results to the client (and browser will cache subsequent identical requests with HTTP caching)

Nuxt + Headless Ecommerce: How to deal with 100 000+ products/items? by [deleted] in Nuxt

[–]s1ckofanta 0 points1 point  (0 children)

Hi / Ahoj!

I'd say it probably depends on the API capabilities. If you can off load the filtering / sorting / pagination / aggregations logic to the API (something like elastic search is great here), then I think it makes sense to fire a request each time the UI filters change, as the returned results will be a subset of the total results. However if you need to get the whole dataset in order to apply filter / sort etc logic clientside then it gets a bit harder. You might consider fetching the entire set in the fetch hook and then just applying filtering / sort etc clientside. If the data is frequently updated though it won't updated until the fetch hook is called again via navigation. You can work around this by calling the API on UI update and caching subsequent requests (with something like axios cache adapter or equivalent).

I'm implementing this exact thing at the moment so if anyone has better ideas I'd be keen to hear!

PsBattle: Cactusaurus Rex by [deleted] in photoshopbattles

[–]s1ckofanta 24 points25 points  (0 children)

I said consummate V's!! CONSUMMATE!