Pass arguments from `accept()` to next steps

This issue has been tracked since 2023-01-28.

Currently there is no way to pass parsed arguments from accept() to next steps (binding() or controller()). This causes unnecessary duplicate parsing.

Example:

const format = detectStringColorFormat(value, extractColorType(params));
if (!format) {
return null;
}

if (!format) {
throw TpError.shouldNeverHappen();
}

cocopon wrote this answer on 2023-02-12

It can also be implemented on the current structure like this:

params: {
...result,
supportsAlpha: shouldSupportAlpha(params),
},

More Details About Repo
Owner Name cocopon
Repo Name tweakpane
Full Name cocopon/tweakpane
Language TypeScript
Created Date 2016-05-10
Updated Date 2023-03-17
Star Count 2603
Watcher Count 19
Fork Count 71
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date