Skip to content

Commit

Permalink
Move article to magazine
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Dec 12, 2023
1 parent e3666fd commit 79575cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/website/docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export default defineConfig({
text: 'Events in UI-frameworks',
link: '/magazine/handle_events_in_ui_frameworks',
},
{
text: 'Migrating from Redux to Effector',
link: '/magazine/migration_from_redux',
}
],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ sendAnalytics(payload);

It is safe to do, because the `sendAnalytics(payload)` call here is a full equivalent of the `dispatch(sendAnalyticsEventAction(payload))` and can be used instead of it - the action will still be dispatched by the `reduxInterop.dispatch` under the hood.

In the end Redux, Effector and your UI-framework should all use this event instead of dispatching the action.

#### Move the implementation

After that both Redux, Effector and UI-framework's code can use the same event to handle any analytics events and it is now possible to fully move from a analytics middleware to Effector's model:
Since now all analytics is sent via this event, it is now possible to fully move from a analytics middleware to Effector's model:

```ts
// src/shared/analytics/model.ts
Expand Down
2 changes: 1 addition & 1 deletion apps/website/docs/redux-interop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ outline: [2, 3]
Minimalistic package to allow simpler migration from Redux to Effector.
Also can handle any other usecase, where one needs to communicate with Redux Store from Effector's code.

This is a API reference article, for the Redux -> Effector migration guide [see the "Migrating from Redux to Effector" article](/redux-interop/usage).
This is a API reference article, for the Redux -> Effector migration guide [see the "Migrating from Redux to Effector" article](/magazine/migration_from_redux).

## Installation

Expand Down

0 comments on commit 79575cb

Please sign in to comment.