eknkc / ssr-benchmark

Benchmarking JS web framework SSR performance
745 stars 172 forks source link

perf(nuxt): use shallow ref + separate data chunk #31

Closed danielroe closed 4 weeks ago

danielroe commented 4 weeks ago

This does two things:

  1. it loads testdata as an async chunk. As you've switched to using useAsyncData, we can benefit from a built-in optimisation that we do not need to rerun or load this function/data on the client
  2. it uses a non-deeply reactive data structure for storing the data (a regression when the benchmark switched to useAsyncData). This will be the default in Nuxt v4.