question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS: TableView group name does not update

See original GitHub issue

I slightly modified view of template application

    let view (model: Model) dispatch =
        View.ContentPage(
          content = View.StackLayout(
            padding = 20.0, verticalOptions = LayoutOptions.Center,
            children = [
                View.TableView(
                    intent = TableIntent.Form,
                    items = [
                        (sprintf "%d" model.Count, [
                            View.TextCell(
                                text = sprintf "%d" model.Count
                            )
                        ])
                    ]
                  )
                View.Button(text = "Increment", command = (fun () -> dispatch Increment), horizontalOptions = LayoutOptions.Center)
                View.Button(text = "Decrement", command = (fun () -> dispatch Decrement), horizontalOptions = LayoutOptions.Center)
            ]))

when I click buttons, content of View.TextCell updates correctly, but group name does not 2019-02-07 22 49 26

If it is by design, then it is confusing.

Repro is here - https://github.com/sergey-tihon/Fabulous.BugRepros/tree/master/TableViewUpdate

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TimLarivierecommented, Feb 11, 2019

Sooo… It’s a Xamarin.Forms bug finally. 😃 The code above is not what Fabulous does.

Fabulous reuses TableView.Root if not null, which is the case by default in Xamarin.Forms. And for some reasons, this default value ignores property changed events, where a new TableRoot will not.

So I will change the way Fabulous works and raise an issue on the Xamarin.Forms repo.

1reaction
TimLarivierecommented, Feb 8, 2019

Thanks for reporting. I think I know why, had a similar issue with ListViewGrouped a few months ago. I’ll try to fix that today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UITableView sometimes not updating
Hey everybody,. first of all, I'm new in Swift (but not new in software development). I'm currently trying to create a private app...
Read more >
Table not updating correctly - swift
Swapping the Table with a List fixed the problem entirely, but I would like to keep the Table (so I can add more...
Read more >
TableView does not update according to search terms – Swift
I tried using a simple Strings to start to see if that would work on an array that I entered manually. That seemed...
Read more >
macOS NSTableView Tutorial
Table views are one of the most important macOS UI controls. Get up to speed with how to use them with this macOS...
Read more >
Workspace Table View | Trello
Trello's Workspace table view is an easy-to-use feature to see cards from multiple boards across your Trello Workspace in a compact, manageable table ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found