Skip to content

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

@castarco

Description

@castarco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions