Skip to content

Commit

Permalink
refactor(actions): add a deprecation message when values is declared …
Browse files Browse the repository at this point in the history
…on a smart action (#590)
  • Loading branch information
GuillaumeCisco authored and arnaudbesnier committed Dec 9, 2020
1 parent 021ad01 commit 55b7c8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class Actions {
// Create a `values` routes for smart actions.
// One route is created for each action which have a `values` property.
if (action.values) {
this.logger.warn('DEPRECATION WARNING: Declaring `values` in a Smart Action is deprecated. Please use `load` hook.');
createDynamicRoute(
this.getRoute(action, 'values', this.options),
this.getValuesController(action),
Expand Down

0 comments on commit 55b7c8d

Please sign in to comment.