Try to understand the StateField.provide function

Hello,

I don’t understand how the ‘provide’ function works. I understand its purpose, but when I read the source code, I don’t understand where it is used. My goal is to understand what happens with the extension we return with this function.

Thank you in advance for your assistance.