Skip to content
New issue

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

Add Build Meta for Node BTR Functions #203

Merged
merged 2 commits into from Dec 14, 2018
Merged

Add Build Meta for Node BTR Functions #203

merged 2 commits into from Dec 14, 2018

Conversation

@agubler
Copy link
Member

@agubler agubler commented Dec 14, 2018

Type: feature

The following has been addressed in the PR:

Description:

A Build meta designed to be used to call node functions during build time render. The meta accepts a function and returns either null or the result of the function. If the function returns a promise then it will invalidate the widget and return the cached resolved value.

The results are cached, first by the function reference and then by the stringify'd arguments... The functions arguments must be serialisable so cannot accept functions or class instances etc.

@agubler agubler merged commit c0f7f29 into dojo:master Dec 14, 2018
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants