Skip to content

Commit

Permalink
fix readme sample app link, try to fix wasm saved state crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Apr 16, 2024
1 parent d5677b6 commit 2377b02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ plugin system and a rich DSL.

## Quickstart:

* Sample App ![badge-wasm] :
[![Static Badge](https://img.shields.io/badge/Click_Me-Click_Me?style=flat&color=00b147)](https://opensource.respawn.pro/FlowMVI/sample)
* Sample App ![badge-wasm]:
[![Static Badge](https://img.shields.io/badge/Click_Me-Click_Me?style=flat&color=00b147)](https://opensource.respawn.pro/FlowMVI/sample/)
* Documentation:
[![Docs](https://img.shields.io/website?down_color=red&down_message=Offline&label=Docs&up_color=green&up_message=Online&url=https%3A%2F%2Fopensource.respawn.pro%2FFlowMVI%2F%23%2F)](https://opensource.respawn.pro/FlowMVI/#/)
* KDoc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ internal class SavedStateContainer(

// can also be injected, defined here for illustration purposes
// see "StoreConfiguration" for injection setup
serializeState(
dir = fileManager.cacheDir("state") ?: "",
json = json,
serializer = DisplayingInput.serializer(),
recover = NullRecover,
)
// Saved state is not supported on wasm yet
fileManager.cacheDir("state")?.let {
serializeState(
dir = it,
json = json,
serializer = DisplayingInput.serializer(),
recover = NullRecover,
)
}

reduce { intent ->
when (intent) {
Expand Down

0 comments on commit 2377b02

Please sign in to comment.