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

Issue: componentDidUpdate() #59

Open
susannachan98 opened this issue May 9, 2022 · 5 comments
Open

Issue: componentDidUpdate() #59

susannachan98 opened this issue May 9, 2022 · 5 comments

Comments

@susannachan98
Copy link

螢幕擷取畫面 (393)

I haven't seen anyone else having this problem. Is there any way I could fix it?

@kennytanggg
Copy link

kennytanggg commented May 29, 2022

I'm having the same issue
Unfortunately have not found a fix yet

@rkrahulmishra887
Hi there, would you be able to assist? It looks like you were helping out with other issues on this task.

I tried copying the node_modules from Task 2 into my directory for Task 3.
Separately in Graph.tsx, I also tried changing the reference path for { Table } to '@finos/perspective';
I still get an error on componentDidUpdate()

@rkrahulmishra887
Copy link

Hi you can check this out for reference
image

@kennytanggg
Copy link

kennytanggg commented Jun 1, 2022

Hi you can check this out for reference image

Thanks Rahul @rkrahulmishra887, unfortunately, it cannot find the Table module from @jpmorganchase/perspective.
Please see the screenshots below.

image
image

Is there something else wrong with my setup?
I cloned the python3 repo, and am using python 3.7 to run npm start.
I also copied the node_modules folder from Task 2 into Task 3.

@vzzyxn
Copy link

vzzyxn commented Jul 1, 2023

import { Table } from '@finos/perspective';

@johnppkyaw
Copy link

johnppkyaw commented Apr 3, 2024

I was able to resolve it by: also importing TableData from '@finos/perspective' and adding as unknown as TableData near the end of componentDidUpdate method:

import { Table, TableData } from '@finos/perspective';

componentDidUpdate() {
if (this.table) {
this.table.update([
DataManipulator.generateRow(this.props.data),
] as unknown as TableData);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants