Closed IamSebastianDev closed 9 months ago
Feature Overview: Combining the mapped and combined function
mapped
combined
Current Functionality: Right now, the mapped grain function is working similar to the combined function, with a predefined run function.
Suggested Enhancement: Change the implementation of mapped to use combined internally
Benefits of Enhancement: Better inner subscription handling
export const mapped: MappedFn = <Dependencies extends ReadonlyGrain<any>[]>( grains: Dependencies ): ReadonlyGrain<GrainValue<Dependencies>> => { return combined(grains, (values) => [...values]) }
:tada: This issue has been resolved in version 1.11.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Feature Enhancement Description
Feature Overview: Combining the
mapped
andcombined
functionCurrent Functionality: Right now, the
mapped
grain function is working similar to thecombined
function, with a predefined run function.Suggested Enhancement: Change the implementation of
mapped
to usecombined
internallyBenefits of Enhancement: Better inner subscription handling
Additional Information
Possible Implementation 💡