This Pokémon fainted
{label} could not be summoned.
{error instanceof Error ? error.message : String(error)}
);
const cardsSlot: RemoteSlotConfig = {
label: "pokemon cards",
timeoutMs: 800,
fallback: pokedexFallback,
load: async () => (await loadRemote<{ RemoteCards: RemoteComponent }>("stable/Cards")).RemoteCards
};
```
--------------------------------
### RemoteSlot with Fallback and Retry
Source: https://www.npmjs.com/package/mf-shield/v/0.1.0?activeTab=dependents
Demonstrates mounting a remote component with a fallback mechanism. Changing the retryKey remounts the slot to attempt a retry. The timeoutMs option can be used to cut off slow remotes.
```typescript
import { useState } from "react";
import { RemoteSlot, type RemoteComponent, type RemoteSlotConfig } from "mf-shield/react";
const widgetSlot: RemoteSlotConfig = {
label: "stable widget",
timeoutMs: 800, // optional: cuts off slow remotes
load: async () => (await loadRemote<{ RemoteWidget: RemoteComponent }>(
```
```typescript
stable/Widget")).RemoteWidget
};
export function WidgetPanel() {
const [attempt, setAttempt] = useState(0);
return (