-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[RFR] Add link function to ReferenceField #3282
Conversation
9e70ce0
to
2513035
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍 However, I think linkType
isn't a good name anymore. Maybe you should rename it to redirectTo
. @fzaninotto ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that linkType
makes less sense if it also accepts a function. link
is better. But can you make it backwards compatible, e.g. by using either link
or linkType
, and by logging a deprecation warning if the latter is used?
d028458
to
aafcd49
Compare
02632af
to
3c7f7e2
Compare
I need to change the tests as well, do you want me to test the backward compatibility ? |
@fzaninotto did you have time to review this ;) ? |
Thanks! |
Fixes #2288
PR to
next
as it is a new feature