Pass the public state in getCurrentData()