Skip to content

Commit 05d1b02

Browse files
committed
fix: review comments
1 parent ae76737 commit 05d1b02

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/TesterIntegrated/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ type RootStackParamList = {
3030

3131
type HomeScreenProps = NativeStackScreenProps<RootStackParamList, 'Home'>;
3232

33+
const theme = getRandomTheme();
34+
3335
function HomeScreen({ navigation, route }: HomeScreenProps) {
34-
const colors = route.params?.theme || getRandomTheme();
36+
const colors = route.params?.theme || theme;
3537
const [state, setState] = useBrownieStore('BrownfieldStore');
3638

3739
useEffect(() => {

packages/brownie/ios/BrownieStore.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ public class Store<State: Codable>: ObservableObject {
124124
let data = try? JSONSerialization.data(withJSONObject: snapshot),
125125
let newState = try? JSONDecoder().decode(State.self, from: data) else { return }
126126

127-
DispatchQueue.main.async { [weak self] in
128-
self?.state = newState
129-
}
127+
state = newState
130128
}
131129

132130
/// Update state using a closure

0 commit comments

Comments
 (0)