Skip to content

Search the guides, deployment pages, and API reference.

@pitlane/content/hot

Browser reloads during development when a file behind a collection changes, for servers that remix/node-hmr supervises rather than Vite. See hotContent.

See

Content guide, without a build

Interfaces

  • BrowserEvent. An event for the browser HMR client. A reload is the only one content sends.
  • BrowserHmrChannel. The part of remix/node-hmr's BrowserHmrChannel this module uses.
  • FileEvent. A file change the supervisor's watcher observed.

Functions

  • hotContent. Reloads the browser when a file behind a collection changes.