ThreadList
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
Parameters
The ThreadListViewModel handling the loading of the threads.
Modifier instance for general styling.
The currently logged User, used for formatting the message in the thread preview.
Action invoked when the user clicks on the banner. By default, it calls ThreadListViewModel.load to force reload the list of threads, loading the newly created/updated threads.
Action invoked when the usr clicks on a thread item in the list. No-op by default.
Action invoked when the current thread page was scrolled to the end, and a next page should be loaded. By default, it calls ThreadListViewModel.loadNextPage to load the next page of threads.
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
Parameters
The ThreadListState holding the current thread list state.
Modifier instance for general styling.
The currently logged User, used for formatting the message in the thread preview.
Action invoked when the user clicks on the banner.
Action invoked when the usr clicks on a thread item in the list.
Action invoked when the current thread page was scrolled to the end, and a next page should be loaded.