TC 39 decorators - use late initializers.

Open
#3,789 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by reading the linked TC39 decorators issue and confirming that TypeScript and Babel support the proposed late initializers. Then inspect the observable accessor decorator entry point; done means it uses late initializers instead of temporary map storage while preserving existing behavior.

Written by the indexing model from the issue text.

Description

✋ on hold 🍗 enhancement

Once https://github.com/tc39/proposal-decorators/issues/513 lands and is implemented by TypeScript and Babel, leverage it in the observable accessor decorator, to avoid the temporary map storage.

Dominant language
TypeScript
Stars
28.2k
Forks
1.8k
Avg merge
1h 38m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mobxjs/mobx

All issues in mobxjs/mobx

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.