Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : Visualization view not working on React component initial mount #189

Open
zqqcee opened this issue Oct 12, 2023 · 0 comments
Open
Labels
bug Something isn't working v4

Comments

@zqqcee
Copy link

zqqcee commented Oct 12, 2023

Description

When using Graphic Walker as a React component, the visualization view does not work upon the initial mount of the component. I tried clicking "New chart" to switch to chart2, and it started working successfully.

However, when I switched the chart back to chart1, it still did not work.

Reproduction

export const Dashboard: React.FC = () => {
    const [ds, setDs] = useState<IDataSource>();
    useEffect(() => {
        const _ = async () => {
            const data = await getData('BIKE_SHARING', dataURL);
            setDs(data);
        }
        if (!ds) {
            _();
        }
    }, [ds]);
    return <GraphicWalker
        dataSource={ds?.dataSource}
        rawFields={ds?.rawFields}
    />
}

Screenshot

2023-10-12.5.38.48.mov
@zqqcee zqqcee changed the title Bug : Visualization view not working on initial mount Bug : Visualization view not working on React component initial mount Oct 12, 2023
@islxyqwe islxyqwe added v4 bug Something isn't working labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v4
Projects
None yet
Development

No branches or pull requests

2 participants