-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
implementedFeature Request implementedFeature Request implementedrequestFeature RequestFeature Request
Milestone
Description
- Laravel Version: 8.41.0
- Nova Version: 3.27.0
- PHP Version: 7.4.16
- Database Driver & Version: irrelevant
- Operating System and Version: irrelevant
- Browser type and version: irrelevant
- Reproduction Repository: https://github.com/###/###
Description:
Action fields are being loaded for all instances of a resource even if it is declared as an inline or detail action. If a field needs to perform a query or needs a complex operation to define its default value or something similar, the action makes the list unusable. The action fields should be loaded when the action itself is being triggered for a given resource.
Detailed steps to reproduce the issue on a fresh Nova installation:
- Create an action with fields.
- Make a field load its default value by making a complex operation like querying the database or fetching some data through an API.
- Add the action to a resource setting it as an inline action or showing it only on display.
- On chrome devtools, check the response from the main call to the resource index: the action has been loaded for each resource with all of its fields already set.
Desired behaviour:
Fields of inline and detail actions should only be instanced after triggering the action itself.
Metadata
Metadata
Assignees
Labels
implementedFeature Request implementedFeature Request implementedrequestFeature RequestFeature Request