Function: logStoreAction()
logStoreAction(
storeName
:string
,actionName
:string
,data?
:unknown
):void
Defined in: src/stores/utils.ts:163
Logger utility for store actions in development mode.
Parametersโ
storeNameโ
string
Name of the store performing the action
actionNameโ
string
Name of the action being performed
data?โ
unknown
Optional data associated with the action
Returnsโ
void
Remarksโ
This utility provides consistent logging for store actions during development. It only logs when NODE_ENV is set to 'development' to avoid performance impact in production builds.
Exampleโ
logStoreAction("SitesStore", "addSite", { id: "site-123" });