Replies: 2 comments
-
That's not that easy. The store has pre-defined properties or "slots", where you can only add methods, computed, state or hooks. Could you please post the full usage of |
Beta Was this translation helpful? Give feedback.
-
This is possible, but not provided out of the box via You need to 'manually' create a feature similar to base features, for example: https://github.com/ngrx/platform/blob/main/modules/signals/src/with-methods.ts |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a signalStoreFeature similar to
withComputed
which works like bellowwithApiTableSource
takes a function as an argument and the argument of this function isstore
, same store that is passed when I usewithComputed((store: THIS) => ...)
function.I see in the sourcecode of
withComputed
it something like bellowBut
SignalStoreFeatureResult
,Prettify
,SignalStoreSlices
etc are not exposed from the library.Beta Was this translation helpful? Give feedback.
All reactions