Skip to main content

executeSync

Summary

Execute a synchronous function with error boundary protection.

Signature

Parameters

operation

Type:() => T The function to execute

context

Type: Optional: Yes Context information for error reporting

fallback

Type:() => T Optional: Yes Optional fallback function to try on error

Returns

Type: Execute a synchronous function with error boundary protection.