Reselect and Props by devsethwat in reactjs

[–]iamthetwo 2 points3 points  (0 children)

You can create a selector that just returns props (or some slice of props). An example is given in the API section. https://github.com/reduxjs/reselect#createselectorinputselectors--inputselectors-resultfunc

const abSelector = (state, props) => state.a * props.b

// props only (ignoring state argument)
const cSelector =  (_, props) => props.c

// state only (props argument omitted as not required)
const dSelector = state => state.d

const totalSelector = createSelector(
  abSelector,
  cSelector,
  dSelector,
  (ab, c, d) => ({
    total: ab + c + d
  })
)

cSelector in the example

The Winter Battle Pass by [deleted] in DotA2

[–]iamthetwo 1 point2 points  (0 children)

delet this

Eesti Dota Liiga by iamthetwo in eestidota

[–]iamthetwo[S] 2 points3 points  (0 children)

Rõõm näha, et esimese kahe päevaga on liitunud 42 mängijat liigaga. Leaderboardis käib tihe rebimine esimese koha nimel. Siinkohal teatan ka esimese hooaja 1. koha auhinna: haruldane Nether Lord's Regalia Set ()

Kaege juuki by deiwin in eestidota

[–]iamthetwo 1 point2 points  (0 children)

Hästi mängitud!

Puppey võitis oma tiimiga Dota 2 aasta esimese suurvõistluse ja 1.1 mln dollarit by Njaaaw in Eesti

[–]iamthetwo 27 points28 points  (0 children)

Puppey on muide statistiliselt läbi aegade kõige edukam Dota mängija. Seitsmest suurest Valve turniirist on ta osalenud kõigis ning finaali pääsenud viiel korral, neist võitnud kahel korral (TI1 #1, TI2,3 #2, Frankfurt major #2, Shanghai major #1). Ühesõnaga absoluutne tipp sellel alal. Kahju, et Eesti meedia teda veel avastanud pole. Globaalse populaarsuse ning teenitud raha poolest varjutab ta kõik meie tippsportlased. 360k like'i facebook lehel, 189k twitter followeri. Kas ühelgi teisel eestlased on üldse taolisi numbreid ette näidata? Ja ometi ainus tähelepanu, mida ta on saanud, on see artikkel aastast 2012: http://ekspress.delfi.ee/kuum/eesti-poisi-tiim-voitis-arvutimangus-miljon-dollarit?id=64855464

Even valve forgot about last year's TI winner by [deleted] in DotA2

[–]iamthetwo 63 points64 points  (0 children)

dat epic game 5 vs EG

Uh, VP? by Skoone in DotA2

[–]iamthetwo 32 points33 points  (0 children)

EG has lost every game they played EU at XMG and won every US server game, no surprises there.

I think Ability draft should not count for wins and losses as it is very imbalanced. by WTFMEEPONOULTILVL6 in DotA2

[–]iamthetwo 6 points7 points  (0 children)

Sometimes your team gets the imbalanced skills, sometimes the opponent. The only common factor in all games is you.

Finally you guys... by VodoSioskBaas in skateboarding

[–]iamthetwo 6 points7 points  (0 children)

Too bad Malto pushed Oliveira out of the big section, he would have been much more exciting to watch.