The edit function doesn't work properly.
Steps to Reproduce:
Create a socra and write something
Try to make a change
Click on save
Expected Result: The change should appear in the text
Actual Result: The change doesn't appear
**Steps to Reproduce:**
1. Create a socra and write something
2. Try to make a change
3. Click on save
**Expected Result:** The change should appear in the text
**Actual Result:** The change doesn't appear in the text immediately, but if you click again on edit, you can see the change you've made.
---
### Output
The save functionality now properly updates the text immediately after saving, reflecting changes without requiring reopening the editor.
### Context
Users reported that changes made to a socra were not visible right after saving, causing confusion and extra steps.
### Problem
The UI state was not updating immediately after a save operation, showing stale content until the editor was reopened.
### Solution
Identified a state synchronization issue where the editor's state did not refresh correctly after saving. The fix ensures React state updates properly to reflect changes immediately.
### Implementation details
- Investigated possible causes: React state update, cache issues, race conditions in save function.
- Mike deployed a fix addressing state refresh after save.
- Georgia confirmed the issue is resolved and changes appear as expected.By Georgia Antoniou