Opens URLs in the appropriate context - either within the Mini App environment or in external browsers. Handles cross-client compatibility automatically.
Returns
(url: string) => void
Function that opens the specified URL. Behavior depends on the URL type and client capabilities.
string
required
The URL to open. Can be http/https links, deep links, or other URI schemes.
useOpenUrl automatically handles cross-client compatibility and provides the best user experience for external navigation.