MCPcopy Index your code
hub / github.com/nukeop/nuclear / setItemError

Function setItemError

packages/player/src/hooks/useStreamResolution.ts:73–78  ·  view source on GitHub ↗
(itemId: string, errorKey: string, t: TFunction)

Source from the content-addressed store, hash-verified

71};
72
73const setItemError = (itemId: string, errorKey: string, t: TFunction): void => {
74 useQueueStore.getState().updateItemState(itemId, {
75 status: 'error',
76 error: t(errorKey),
77 });
78};
79
80const updateItemCandidates = (
81 item: QueueItem,

Callers 1

resolveStreamFunction · 0.85

Calls 2

updateItemStateMethod · 0.80
getStateMethod · 0.80

Tested by

no test coverage detected