Open zzap opened 4 years ago
@youknowriad or @ellatrix, I’m surprised seeing those additional props, should they be documented?
@zzap where exactly did you run debugging method?
Most of them are for advanced use-cases but yeah worth documenting.
@zzap where exactly did you run debugging method?
I ran console.log(props)
inside edit
function for custom block.
is props.toggleSelection
supposed to toggle props.isSelected (and cause the entailing effects)? I've tried issuing it but to no avail..
Documentation for
edit()
function list only 4 properties:attributes
,className
,isSelected
andsetAttributes
.Console-logging all properties we find following:
I'd be happy to create pull request for those but my knowledge for their usage is very limited. If someone can provide code examples and explanations that would be of huge help for updating docs.