Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ yarn add @dilane3/gx

## Prerequisites

This library doesn't work properly in strict mode. So to avoid some issues, please disable strict mode in your react application first before using it.
```bash
Since version `1.4.0` of `gx`, you can use it with `strict mode` enabled.
```

But, if you are using a version below `1.4.0`, you have to disable `strict mode` in your react application.

### Disabling strict mode on React

Expand Down Expand Up @@ -99,7 +103,13 @@ For handle it, there is a special `createSignal` function for this case.

**Actions** represent functions that act to the state and make it changing over the time.

Your have to specify these `actions` when you create yours `signals`.
You have to specify these `actions` when you create yours `signals`.

```txt
Since version `1.4.0` of `gx`, you can use `async` actions.
```

You can read more about it on the [documentation](https://gx.dilane3.com/docs/guide/async-actions)

### 3. Store

Expand Down Expand Up @@ -146,6 +156,8 @@ const counterSignal = createSignal({
export default counterSignal;
```

If you want to use `async` actions, you can learn more about it on the [documentation](https://gx.dilane3.com/docs/guide/async-actions)

### Third step: Creating your store.

Inside the `store` directory, create an `index.js` file.
Expand Down