API Reference > ui-framework > Hooks > useSolarDataProvider useSolarDataProvider Function Beta Hook that returns either a SolarTimelineDataProvider or undefined based on if the supplied viewport's display style is set to display shadows. useSolarDataProvider(viewport: undefined | ScreenViewport): SolarDataProvider | undefined Parameter Type Description viewport undefined | ScreenViewport Returns - SolarDataProvider | undefined Defined in ui/framework/src/ui-framework/hooks/useSolarDataProvider.tsx Line 55 Last Updated: 11 June, 2024