querysub 0.354.0 → 0.355.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/4-dom/qreact.tsx +1 -0
package/package.json
CHANGED
package/src/4-dom/qreact.tsx
CHANGED
|
@@ -307,6 +307,7 @@ type InlineFunction = {
|
|
|
307
307
|
isInlineFunction?: true;
|
|
308
308
|
}
|
|
309
309
|
/** Used to set a flag on a function which will cause it to render inline, which means it will be evaluated immediately, the same as if you called a function.
|
|
310
|
+
TODO: You should be able to call this flag on the component class, and it should then set something on the prototype, so that when we see it, we immediately call the render function with the props. That way, it's much much easier to just make an existing component render inline.
|
|
310
311
|
*/
|
|
311
312
|
export function setInlineRenderFlag(fnc: InlineFunction) {
|
|
312
313
|
fnc.isInlineFunction = true;
|