---
title: "__componentHmrServerRuntime__"
source: "https://github.com/remix-run/remix/blob/remix@3.0.0/packages/component-hmr/src/runtime/server.ts#L8"
---

# __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

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