mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-01-30 16:41:44 -05:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
import { act } from "@testing-library/react-native";
|
|
import useStore from "stores/useStore";
|
|
|
|
export default function setStoreStateLayout( stateToMerge ) {
|
|
const initialState = useStore.getInitialState();
|
|
act( () => {
|
|
useStore.setState( {
|
|
layout: {
|
|
...initialState.layout,
|
|
...stateToMerge,
|
|
},
|
|
} );
|
|
} );
|
|
}
|