We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8bf7f0 commit aece063Copy full SHA for aece063
packages/brownie/android/src/main/java/com/callstack/brownie/StoreManager.kt
@@ -22,6 +22,9 @@ class StoreManager private constructor() {
22
*/
23
fun <State> register(store: Store<State>, key: String) {
24
lock.withLock {
25
+ check(!stores.containsKey(key)) {
26
+ "Store with key '$key' is already registered. Remove the previous store first using Store.close() or StoreManager.removeStore(key)"
27
+ }
28
stores[key] = store
29
}
30
0 commit comments