reflex icon indicating copy to clipboard operation
reflex copied to clipboard

data_table behavior related to source of `data` and `column`

Open qenu opened this issue 1 year ago β€’ 1 comments

Describe the bug When data and columns are each hard coded and referenced, it would fail to compile.

To Reproduce Steps to reproduce the behavior:

  • Code/Link to Repo:
class State(pc.state):
   data = [["some data"]]
def index():
   return pc.data_table(
       data = State.data,
       columns = ["item"],
   )

Expected behavior data_table should be able to compile when data and columns are from different sources

Screenshots Could provide if needed.

** Specifics (please complete the following information):**

  • Python Version: 3.11
  • Pynecone Version: v0.1.32
  • OS: MacOS
  • Browser (Optional): Safari

qenu avatar Jun 01 '23 01:06 qenu

Table content Japanese table calculation is one whole, this is not possible bug

jiangyangcreate avatar Jun 02 '23 09:06 jiangyangcreate

Tested with latest reflex, no error happens. Will close

Lendemor avatar Jun 11 '24 15:06 Lendemor