-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I have multiple editor instances? #133
Comments
I do have it working when showing multiple editor instances. I am using the advanced setup so I do have some extra Tiptap plugins installed.
On 12-06-2024, at 14:23, Adnan ***@***.***> wrote:
So, right now, I'm trying to have multiple notes. I'm also trying to set the initialContent to the saved content in the database. But the editor only seems to be working in one note.
It does work if I pass in a custom DEV_SERVER_URL with that note id, but I'm afraid this is going to cause some memory and scalability issues. Is there a better way of doing this?
—
Reply to this email directly, view it on GitHub<#133>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4CJQRQO2KTXCDTIQNVDTDZHCGYLAVCNFSM6AAAAABJG4J2UCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DSNBTGMZDSOI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hey, TenTap should work with many editor instances, you do need a new editor instance for each editor (useEditor) If no content is being displayed something must have failed inside the web-view could you send us the error? This is how you can inspect web-view logs: |
Closing for now, lmk if it persists |
Still the same problem, experiencing it quite frequently. I'm using the latest version.
|
Could you provide a minimal reproducible example? |
We can see this on very old android devices @adn0n can you verify iOS is working for you? I see:
Might be related to |
I'm using Android 14 though, could it be related to my Java and Gradle version? I'll try setting up an iOS emulator. Here's the code that I'm using: HomeScreen (most recent note):
And I have another component called NoteOpen
If I load my HomeScreen component and then go to notes, it never loads - I get
(presumably because the other editorBridge is already running?) |
I'm getting this exact error. I have a I'm testing on a Pixel 8 Pro running latest Android version. |
I've found a way to reproduce this consistently. |
In case it can by any helpful, I found this thread where an alternative prop is being exposed, I'm going to patch locally and see if I have better results |
Should be fixed on |
Working fine now, thank you! |
So, right now, I'm trying to have multiple notes. I'm also trying to set the initialContent to the saved content in the database. But the editor only seems to be working in one note.
It does work if I pass in a custom DEV_SERVER_URL with that note id, but I'm afraid this is going to cause some memory and scalability issues. Is there a better way of doing this?
The text was updated successfully, but these errors were encountered: