store icon indicating copy to clipboard operation
store copied to clipboard

Have to append Store in all selectors (in 2.0)

Open tsawan opened this issue 8 years ago • 4 comments

Just upgraded to v2.0. Now I have to append 'Store' in all selectors. e.g., instead of @Select('well.listAllWells'), I have to use @Select('wellStore.listAllWells'). I believe appending Store in all selectors is adding boilerplate (the very reason of using ngxs).

tsawan avatar Mar 18 '18 06:03 tsawan

I just noticed that if I define my store name explicitly then it works ok. So probably the issue is with default store name not dropping 'Store' suffix.

tsawan avatar Mar 18 '18 06:03 tsawan

Try renaming your store classes to state. There was a breaking change regarding the naming convention.

So instead of FooStore try FooState.

Silthus avatar Mar 18 '18 10:03 Silthus

Sorry to miss that out. yes, it's working fine after renaming the stores.

tsawan avatar Mar 18 '18 11:03 tsawan

Sorry about all the renaming! We are gonna deprecate in the future, I figured since it was so new it would be ok for this release.

amcdnl avatar Mar 18 '18 16:03 amcdnl