KockaAdmiralac / uty-save-editor

Save editor for Undertale Yellow.
https://uty-save-editor.netlify.app
MIT License
6 stars 1 forks source link

Get current save/section through context instead of props #9

Open KockaAdmiralac opened 9 months ago

KockaAdmiralac commented 9 months ago

Many times in the code, there are repeating save="save" section="Save1" and similar constructs. We know that for the same save editor the same save should be edited, and for the same section of the editor (usually) the same section of the save file should be edited, so we could pass this information through context. This information never changes, so we don't need to worry about useless re-renders.