During the customization of a text cell, the bound data of props unexpectedly disappeared

I noticed that the TextCell does not have a debounce mechanism when handling modifications, causing every keystroke to trigger handleChange .
Therefore, I plan to create a new cell that adds a debounce mechanism while staying as close as possible to the original TextCell .
However, I encountered an issue when registering this new cell. The data and handleChange of props disappeared.

I’m not sure which step went wrong. I strictly followed the TextCell structure when writing my custom cell. Could you please identify which part might be causing the issue?
This might be a simple issue, and I must have overlooked something critical. Thank you so much for providing suggestions!

I notice a question :When l custom Cell successfully,the props lack “handleChange" prop,how to emit a data change
It looks like my question, but i don’t know where i can registry my custom cell

I find the reason why i cannot get the data and handlechange in props.
It is because that i cannot registry a jsonFormsContext in my cell


What should i do to inject or add the context of my customCell?


After carefully reviewing the article(https://jsonforms.discourse.group/t/when-l-custom-cell-successfully-the-props-lack-handlechange-prop-how-to-emit-a-data-change/841), I realized I missed a critical part. First, I need to process my cell using this method:
withJsonFormsCellProps(withVanillaCellProps(CustomTextCell)), then register the processed cell into the JsonFormsCellRendererRegistryEntry. Both steps are essential.

I think my question is solved, if i have some questions, i 'll ask again. Think for this community!I also hope my experience can help others facing similar issues.

1 Like

Hi @Pitwng ,

Thank you for sharing your findings and solution to help others. Always feel free to ask again in case of other questions :blush:

Thanks and best regards,
Lucas