Closed rpiaggio closed 3 months ago
Since this implementation breaks binary compatibility, it would actually imply a major version bump (ie: 3.0.0
).
Seems overkill just for this change, so I'm going to merge this change to our React 18 branch and release this feature there.
ScalaFnComponent
andScalaForwardRef
now support.withDisplayName(name)
. Must be called first (before hooks/render*
/withChildren*
).Example:
I disabled Mima checks temporarily since this is binary incompatible (it is source compatible though). This implies we have to step up to 2.2.0. We have to reenable Mima tests after 2.2.0 release.This will go into a3.0.0
release, together with React 18 support.Thanks to @hugo-vrijswijk for the idea of using
sourcecode.FullName
for the default names.