Skip to content

Ref not working? #30

@kgjersda

Description

@kgjersda

Using functional components in TypeScript this now fails after upgrading from 0.6.0 to 0.9.1.
I used ref in a bookmark component to fetch the current state of the report.
Now ref no longer updates. I've tried to look through the diffs on the versions but I can't really see where it starts to fail.

Any help is much appreciated

Code below:

export function ReportPage() {
	const ref = useRef<any>(null);
    /// Code shortened [.....]
	return (<div>
		<BookmarkComponent embeddedGuid={embeddedGuid} reportRef={ref} currentReport={currentReport} cancelSource={cancelSource} />
		<PowerbiEmbedded
			key={currentReport?.guid || ""}
			ref={ref}
			id={powerBiConfig?.id}
			embedUrl={powerBiConfig?.embedUrl}
			accessToken={powerBiConfig?.embedToken.token}
		/>
	</div>)

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions