mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/703
Author: @guneskaan
Created: 11/30/2020
Status: ✅ Merged
Merged: 12/6/2020
Merged by: @Rokt33r
Base:
master← Head:initialize-after-import📝 Commits (1)
ce1f042Initialize StorageMap after importing from legacy📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
src/components/organisms/ImportLegacyNotesForm.tsx(+5 -2)📄 Description
Fixes #667.
setState()call in React runs asynchronously, making thesetStorageMap()call insidecreateFolder()andcreateNote()asynchronous. React will batch these updates together, making value ofstorageMapis unreliable insidecreateNote(), which depends on the updates fromcreateFolder()when importing legacy notes.Calling
initialize()will restore thestorageMap()by repopulatingfolderMapandnoteMap.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.