Closed belov38 closed 2 months ago
Telegram for iOS, Telegram Desktop, Other
useInitDataRaw() return object instead raw data
import { useInitDataRaw } from '@telegram-apps/sdk-react'; ... const initDataRaw = useInitDataRaw ()
expect initDataRaw is string, but got Object
Yes, that's right. I assume, its name may be misleading. To get the result you expect, consider using such code:
useLaunchParams().initDataRaw
Telegram Application
Telegram for iOS, Telegram Desktop, Other
Describe the Bug
useInitDataRaw() return object instead raw data
To Reproduce
Expected Behavior
expect initDataRaw is string, but got Object