---
title: __uiHmrServerRuntime__
source: https://github.com/remix-run/remix/blob/main/packages/ui-hmr/src/runtime/server.ts#L8
---

# __uiHmrServerRuntime__

## Summary

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

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

## Signature

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