Hooks

useGetInfoOnboardingData

The following environment variables are required:

API_INFO_ONBOARDING_SLIDE='/contents/onboardings/types/$APP_ONBOARDING?includeSlides=true'

How to get the onboarding information?

Use the getInfoOnboardingData function and invoke infoOnboardingServices from /services/infoOnboardingServices:

import infoOnboardingServices from 'LinkerStudio/modules/infoOnboarding/services/infoOnboardingServices';

const getInfoOnboardingData = useCallback(async () => {
    try {
      const {data} = await infoOnboardingServices.fetchInfoOnboardingData();
    } catch (error) {
      return error
    } 
  }, []);

Last updated