Skip to content

remix/component-hmr/runtime/server · Variable

View Source

componentHmrServerRuntime

Summary

Server component-refresh operations called by code generated by component-hmr transforms.

This is an internal protocol surface for transformed modules, not an application API.

Signature

const __componentHmrServerRuntime__: { getCurrentComponentForHmr: (moduleUrl: string, componentName: string) => ComponentFunction; registerComponentForHmr: (moduleUrl: string, componentName: string, implementation: ComponentFunction) => void }