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

multiple views of the same data causes elements to stay hidden #615

Open
benkuper opened this issue Nov 22, 2024 · 6 comments
Open

multiple views of the same data causes elements to stay hidden #615

benkuper opened this issue Nov 22, 2024 · 6 comments

Comments

@benkuper
Copy link

Hello,
in this very simple REPL, I'm showing two list referencing the same items (the real use case is 2 views of the same data, one tree view and one arranged in layout).

Most manipulations in this example break one list Linked List bug REPL

@isaacHagoel
Copy link
Owner

isaacHagoel commented Nov 22, 2024 via email

@benkuper
Copy link
Author

so I should duplicate the lists ?
my goal is simple, I have a [potentially huge] data structure that is showing a custom dashboard interface. There is an tree view showing all the individuals elements of this dashboard, and a canvas where all those elements are laid out.
The idea is that I'd like to be able to swap elements in my tree view and that would reflect automatically on the board view, and vice versa. Ideally I could even take one from a view and drop it in the other view but that would be a bonus.

@isaacHagoel
Copy link
Owner

isaacHagoel commented Nov 22, 2024 via email

@benkuper
Copy link
Author

Well my goal is to only use one list, so I'm not syncing anything special, like in the REPL.

So you say I should check if it comes from one or the other and not update if it's not the good one ? because right now they have basic behaviour which I though was only used when touching them, but something is happening to the actual list that makes the other view's items go invisible.
I actually have the same problem when drag'n'dropping from a toolbar to the list.
It's a bit late at home but I'll show you my use case. I think it would be great to not have to duplicate the lists, but I understand if it's not compliant with the lib's design.
Thanks for the time and work !

@benkuper
Copy link
Author

If you're able to show a minimal example of synced views of same data, I think it could be interesting for other people (and I've not seen any other lib do that as well)

@benkuper
Copy link
Author

for more context you can check the current build here : Golden Board
if you play a bit with it you'll find many several broken behaviours. I tried to be as close as possible to practices learnt on this github but I guess this use case is a bit edgy.

the clean repo for this is here : https://github.com/Golden-Geek/GoldenBoard

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

2 participants