Skip to content

Conversation

@willnorris
Copy link

This relaxes the Bind and Render to accept any type as a payload. If those types implement the Binder or Renderer interfaces, then the relevant method on the type is called. Sometimes the default Bind or Render behavior is sufficient, and I don't need any additional custom handling.

It looks like the Bind method was updated in #38 but that PR was immediately closed, but I'm not sure why.

This relaxes the Bind and Render to accept any type as a payload.  If
those types implement the Binder or Renderer interfaces, then the
relevant method on the type is called.  Sometimes the default Bind or
Render behavior is sufficient, and I don't need any additional custom
handling. Return early if payload value is nil.

Signed-off-by: Will Norris <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant