-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop exposing Policies to read/merge/key{Fields,Args} functions. (#6304)
When I was first writing this code, I imagined the Policies object might be useful in advanced cases. Since then, I have not found any practical uses for options.policies that can't be satisfied by narrower APIs, and Policies API has changed quite a bit. To preserve our freedom to change the internal Policies API without breaking anyone's code, and to simplify the context object types of read, merge, keyFields, and keyArgs functions, I think we should stop passing options.policies to the various cache policy functions. For anyone who really needs access to the Policies object, it can still be obtained via cache.policies.
- Loading branch information
Showing
3 changed files
with
14 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters