Struggling with appetite

For two weeks now I've been struggling with finding motivation to eat and I'm worried it might affect my fertility. I literally have to be famished to eat something. Has anyone else been through this?