remember Storyteller Grid State
fun rememberStorytellerGridState(key: Any? = null, lazyGridState: LazyGridState = rememberLazyGridState(), enablePullToRefresh: Boolean = false): StorytellerGridState
Remembers a StorytellerGridState instance across recompositions for use with Storyteller grid components. This state holder manages the underlying LazyGridState and pull-to-refresh behavior. For more details on using Storyteller list components and their states, see the Storyteller Lists Documentation.
Return
A remembered instance of StorytellerGridState.
Parameters
key
An optional key to cause recomposition and re-remembering of the state if the key changes.
lazy Grid State
The LazyGridState to be used by this grid. Defaults to a new state created by rememberLazyGridState. Provide a custom state if you need to control scrolling or observe list state from outside.
enable Pull To Refresh
Boolean indicating whether pull-to-refresh functionality should be enabled for the grid. Defaults to false.