We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destructing params width property data for tags await or macros cause unexpected rename from data to input.
data
await
macros
<await(Promise.resolve({data: true}))> <@then|{data}|> $ console.log(data) </@then> </await>
<macro|{data}| name="custom-tag"> $ console.log(data) </macro> <custom-tag data=true>
const _marko_componentType$3 = "v+ir3NBW", _marko_template$3 = t(_marko_componentType$3); const _marko_component$3 = {}; _marko_template$3._ = _marko_renderer$1( function (input, out, _componentDef, _component, state, $global) { _marko_tag( _await, i( () => { a("then", { renderBody: (out, { data }) => { console.log(data); }, }); }, { _provider: Promise.resolve({ data: true, }), _name: "Promise.resolve({\n data: true\n})", } ), out, _componentDef, "0" ); }, { t: _marko_componentType$3, i: true, }, _marko_component$3 );
const _marko_componentType$9 = "q9e2IxLW", _marko_template$9 = t(_marko_componentType$9); const _marko_component$9 = {}; _marko_template$9._ = _marko_renderer$2( function (input, out, _componentDef, _component, state, $global) { function _abc(out, { data }) { console.log(data); } _marko_dynamic_tag$1( out, _abc, () => ({ data: true, }), null, null, null, _componentDef, "1" ); }, { t: _marko_componentType$9, i: true, }, _marko_component$9 );
const _marko_componentType$3 = "v+ir3NBW", _marko_template$3 = t(_marko_componentType$3); const _marko_component$3 = {}; _marko_template$3._ = _marko_renderer$1( function (input, out, _componentDef, _component, state, $global) { _marko_tag( _await, i( () => { a("then", { renderBody: (out, { data }) => { console.log(input); }, }); }, { _provider: Promise.resolve({ data: true, }), _name: "Promise.resolve({\n data: true\n})", } ), out, _componentDef, "0" ); }, { t: _marko_componentType$3, i: true, }, _marko_component$3 );
const _marko_componentType$9 = "q9e2IxLW", _marko_template$9 = t(_marko_componentType$9); const _marko_component$9 = {}; _marko_template$9._ = _marko_renderer$2( function (input, out, _componentDef, _component, state, $global) { function _abc(out, { data }) { console.log(input); } _marko_dynamic_tag$1( out, _abc, () => ({ data: true, }), null, null, null, _componentDef, "1" ); }, { t: _marko_componentType$9, i: true, }, _marko_component$9 );
The text was updated successfully, but these errors were encountered:
LuLaValva
Successfully merging a pull request may close this issue.
Marko Translator Default: 6.0.5
Details
Destructing params width property
data
for tagsawait
ormacros
cause unexpected rename fromdata
to input.Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: