using useState for custom topic and on reload it is getting lost, this will work if i have an API