UserDecorationWrapper
Client memo wrapper wiring useUserDecoration + flair preference refresh into DecorationRenderer.
Exports
UserDecorationWrapper— named exportUserDecorationWrapperProps— interface
Props (UserDecorationWrapperProps)
| Prop | Type | Default | Behavior |
|---|---|---|---|
userId | string | — | Passed to decoration hook |
children | ReactNode | — | Wrapped content |
className | string | '' | Forwarded to renderer |
forceDecoration | string | — | Override fetched decoration |
enabled | boolean | true | Hook enable flag |
showError | boolean | false | Forwarded to renderer |
data-testid | string | — | Forwarded to renderer |
Behavior
useFlairPreference()suppliesrefreshTriggerso decoration re-fetches when flair toggles change.- Maps
decoration,isLoading, anderrorfromuseUserDecorationintoDecorationRendererprops unchanged.
Sources: src/app/components/decoration/UserDecorationWrapper.tsx, @lib/hooks/useUserDecoration, @lib/context/UserPreferencesContext