mobxjs / mobx-utils

Utility functions and common patterns for MobX
MIT License
1.19k stars 126 forks source link

createTransformer contains duplicated code #321

Open n9 opened 1 year ago

n9 commented 1 year ago

Once here: https://github.com/mobxjs/mobx-utils/blob/4bf881dc1cfc15b162ad750a267949ac8323c967/src/create-transformer.ts#L51-L57

Another here: https://github.com/mobxjs/mobx-utils/blob/4bf881dc1cfc15b162ad750a267949ac8323c967/src/create-transformer.ts#L62-L71

https://github.com/mobxjs/mobx-utils/commit/887d928afd6540893ea83e78600a7930483bfb93 and https://github.com/mobxjs/mobx-utils/commit/43805db436636a14a25ca2107ab262d8344ab0b4 might be incorrectly merged in https://github.com/mobxjs/mobx-utils/commit/9fac6ae8bddb896a7a3be520a84f54eb698354a3.