-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When useReport is used inside the useEffect, it throws an error mentioning about the wrong embed-type. But useReport works well with JSX file.
Expected type of Config {
type: EmbedType;
tokenType: TokenType;
accessToken: string;
embedUrl: string;
pageName: string;
groupId: string;
visualName: string;
extraSettings: any;
permissions: Permissions;
id: string;
reportMode: ReportModes;
datasetId: string;
pageView: PageView;
dashboardId: string;
}
Config type that works with JSX
Config{
embedType: string,
tokenType: string,
accessToken:string,
embedUrl:string
embedId: string,
reportMode: "View",
permissions: "All",
extraSettings: {
filterPaneEnabled: false,
navContentPaneEnabled: false
},
pageView: "fitToWidth",
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working