def is_user_defined(cls) -> bool:
        """Check if the state is user-defined.

        Returns:
            True if the state is user-defined, False otherwise.
        """
        return (
            not cls.__module__.startswith("reflex.")
            or cls.__module__ == "reflex.istate.dynamic"
        )
Check if the state is user-defined.

        Returns:
            True if the state is user-defined, False otherwise.
        
reflex/state.py