-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bad priority handler in dataEditServer #58
Comments
Sounds like a namespacing issue. Are you using unique ids for each table? Do you have a simple reproducible example or code snippet you can share? |
A namespacing issue would result in a non-reactivity. Here, the table reacts but does not update correctly. I will try to work on a reproducible example. Also, do you plan to add a |
Thanks @earnaud, this will go a long way in improving my understanding of the problem. What would |
It would be a way to provide a non-reactive data.table in the |
Well, here is a first reprex. I did not meet the described bug, but I had another issue before this: the data seems to send bug although it is a common 10-rows data table. |
is it possible to have feedback on this issue ? |
Hi,
thanks you for this amazing package.
I came across a bug when I tried to use your package, and think I grabbed its cause.
Bug description
I use a shinytree with two node levels: first one is data table names, and second one (leaves) are the different rows of the data table. A button lets the user access the selected data table (whatever is the selected row) and edit it in a modal. The currently selected table has a matching reactive (
selected_table
) which is given to dataEditServer as itsdata
argument.When testing my feature, I click on an item of the first table (5 rows), and clicks the button to display the modal. Everythnig is fine.
Then I click on an item of the second table (20 rows) and clicks the button to display the modal. Everything is fine again.
Then, I click back on an item of the first table, and clicks the button to display the modal. And there, the table is a 20-rows table containing the actual table repeated 4 times.
My investigation
I used
R.utils::reassignInPackage()
to customizedataEditServer()
and added abrowser()
at the beginning of theobserveEvent(input$x)
(line 279 of https://github.com/DillonHammill/DataEditR/blob/master/R/dataEdit.R). This allowed me to inspect variables while the bug is occurring:hot_to_r(input$x)
returns the table 2 while I expected the table 1.values$x
returns the table 1 (not sure what has to be expected).data_to_edit()
returns the table 1 as expected.As far as I understand
dataEditServer
documentation, I shall expect thedataEditUI
to be updated before its value is handled. This does not seem to be the case here.I couldn't get to write a reproducible example of my case, so let me know if there are other pieces of information you would need.
The text was updated successfully, but these errors were encountered: