Updated the pager to have a StateFlow containing the state of the pager.
Loading a new page will no longer modify the frozen pager but will emit a new state object instead.
The state objects are copied so they can be frozen as well.
Also added a test to verify the freezing is no longer an issue 😊.
Fixes #18.
Updated the pager to have a
StateFlow
containing the state of the pager. Loading a new page will no longer modify the frozen pager but will emit a new state object instead. The state objects are copied so they can be frozen as well.Also added a test to verify the freezing is no longer an issue 😊.