Aleksandr Grigorii

Results 14 comments of Aleksandr Grigorii

``` unhandledRejection: Error: aborted at connResetException (node:internal/errors:691:14) at abortIncoming (node:_http_server:596:17) at socketOnClose (node:_http_server:590:3) at Socket.emit (node:events:402:35) at Socket.emit (node:domain:475:12) at TCP. (node:net:687:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'ECONNRESET' } ```

> You might call allSettled in a handler as it described in [useRouter](https://nextjs.org/docs/api-reference/next/router#userouter) docs. `allSettled` is essentially "wait for each pending effect to complete" > > ```tsx > import {useRouter}...

temp solution ```ts sample({ clock: event1, source: {store1: store1$, store2: store2$}, fn: ({store1, store2}) => { return store2; }, target: event2 }) ```

Looks like the Hype Driven Development =) No docs, no examples. [https://twitter.com/flybayer/status/1454547398521393153](https://twitter.com/flybayer/status/1454547398521393153)

what you specified in factories should be used in imports [docs](https://effector.dev/docs/api/effector/babel-plugin#factories) ```json { "presets": ["next/babel"], "plugins": [["effector/babel-plugin", { "reactSsr": true, "factories": ["pageFactory"] }]] } ``` Not ok ```tsx import {...

Example with [effector](https://effector.dev/)

https://github.com/effector/swc-plugin

Modern solution TS 4.9+ ```ts type User = { id: number name: string age: number } const UserSchema = z.object({ id: z.number(), name: z.string(), age: z.number() }) satisfies z.ZodType ```

Same problem with `@effector/swc-plugin` ```ts // vite.config.ts import reactSWC from "@vitejs/plugin-react-swc"; // 3.1.0-beta.2 import { defineConfig } from "vite"; export default defineConfig({ plugins: [ reactSWC({ plugins: [ [ "@effector/swc-plugin", {...

# effector/babel-plugin Latest changes ```json "dependencies": { "@farfetched/core": "^0.7.2", "atomic-router": "^0.8.0", "effector": "^22.5.1", "effector-react": "^22.5.0", "patronum": "^1.14.2", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "@vitejs/plugin-react": "^3.1.0",...