Inventory is not affected, however any blocks placed, produced, or mined do not always save when completely exiting out of the application. I have found certain areas where if im looking at the right angle and exit out the world will save any changes made during the current game play.
Linked issues
duplicates
Comments

81st duplicate of MCPE-1217, please use the search function to see if your bug has already been submitted. Currently over 50% of tickets are being closed as duplicate.