solid-boundaries icon indicating copy to clipboard operation
solid-boundaries copied to clipboard

[BUG] Rename `createBoundaryTracker` in server.js to `trackBounds`?

Open castarco opened this issue 3 years ago • 0 comments

Describe the bug The exported function in server.js should match in name the one for client-side.

  1. I expect trackBounds to be available in server-side, even if I don't make use of it, because not having it can break the static site generation process.
  2. But I find that trackBounds is not available when running Astro build (even if the exported TypeScript types say so), and I have createBoundaryTracker instead (which is not exposed in the exported types).

Additional context It seems both functions (even if they differ in behavior) are there to occupy the same place, that's why it seems a mistake to have them named differently.

castarco avatar Dec 24 '22 15:12 castarco