Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriar-shojib committed Mar 18, 2024
1 parent 77cee16 commit 852156a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
- Global transactions support

```js
import { transact } from "@poly-state/core";
import { transact } from '@poly-state/core';

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
});
```

Expand Down Expand Up @@ -42,12 +42,12 @@
- Global transactions support

```js
import { transact } from "@poly-state/core";
import { transact } from '@poly-state/core';

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
});
```

Expand Down
16 changes: 8 additions & 8 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
- Global transactions support

```js
import { transact } from "@poly-state/core";
import { transact } from '@poly-state/core';

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
});
```

Expand All @@ -39,12 +39,12 @@
- Global transactions support

```js
import { transact } from "@poly-state/core";
import { transact } from '@poly-state/core';

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
});
```

Expand Down

0 comments on commit 852156a

Please sign in to comment.