15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
/**
|
|
* @todo: Add dynamic params support;
|
|
*
|
|
* Exp;
|
|
* usePassThrough(pt1, pt2, pt3, pt*, { mergeSections: true });
|
|
* usePassThrough(pt1, { mergeSections: true });
|
|
*/
|
|
export const usePassThrough = (pt1 = {}, pt2 = {}, ptOptions) => {
|
|
return {
|
|
_usept: ptOptions,
|
|
originalValue: pt1,
|
|
value: { ...pt1, ...pt2 }
|
|
};
|
|
};
|