Skip to content

get_index() method missing from Typescript Table type definition #1440

Closed
@jmasavaglio

Description

Feature Request

Description of Problem:

I am using perspective with react/typescript and am streaming the table updates via websocket. I am currently unable to get the updates to apply to the index I have set (a unique identitifier), instead it keeps adding more rows and thus have duplicates of all the unique identifiers.

I have updated the index.d.ts in my local environment to include:

get_index(): Promise;

under the Table type definition.

This enables me to obtain the table index and use this code:

const table = await worker.table(server_view, { index: await server_table.get_index() });

Potential Solutions:

If there is no particular reason not to, I propose that the get_index() method is added to the typescript Table type definition file.

If there is a better/preferred way of dealing with this in react/typescript I would be happy to learn that and implement it.

Metadata

Assignees

Labels

JSbugConcrete, reproducible bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions