effector / effector/patronum

remap with null handling

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
RFC
Dominant language
TypeScript
Stars
312
Forks
48
PR merge metrics
No merged PRs in 30d

Description

```ts
interface Value {
foo: number | null;
bar?: string;
}
const $demo = createStore(null);

const [$foo, $bar] = remap($demo, ["foo", "bar"]);
// type: [Store, Store]

const $justFoo = remap($demo, "foo");
// type: Store
```

Alternative names?
- `rechain`

Contributor guide

Open the contributing guide

Research direction

Start with the remap API and the TypeScript examples in this issue. Determine whether the requested null-aware typing and naming should be adopted. Done would require a maintainer-approved API direction and implementation scope, but the issue identifies no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.