How to setup Ember like computed properties in Immutablejs and Redux and Flux and React

前端 未结 4 451
旧巷少年郎
旧巷少年郎 2021-01-05 01:11

I am used to computed properties in Ember Object Model. It\'s a convenient way to specify computed properties that depend on other properties.

Say fullName

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 02:13

    Check out reselect. Composable pure functions for efficiently computing derived data from stores. Afaik there are plans to roll reselect's selectors into Redux core at some stage if they prove popular. There's an example for usage with ImmutableJS at the bottom of the readme too.

提交回复
热议问题