cube-js/cube

Query Builder Playground props onVizStateChanged (and other props) not working

Open

#3 694 ouverte le 17 nov. 2021

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Rust (1 965 forks)batch import
help wanted

Métriques du dépôt

Stars
 (19 563 stars)
Métriques de merge PR
 (Merge moyen 5j 16h) (138 PRs mergées en 30 j)

Description

Hi 👋

I'm trying to integrate the Query Builder from your playground package on my React app, but some props doesn't seem to work.

<QueryBuilder
   apiUrl={apiUrl}
   token={token}
   onTabChange={(e) => { console.log('***** tabChanged', e); }}
   onVizStateChanged={( vizState ) => { console.log('***** vizState', vizState); }}
/>

When I changed a tab it's work, but if I change my viz nothing happened. Also, some props like defaultQuery or initialVizState doesn't seem to work too.

Somebody can help me ? :) Or a full query builder already exist for React ?

My goal is to save the json on my DB for display viz later.

Thank you 🙏

Guide contributeur