mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 09:05:59 -04:00
feat: Add asynchronous config fetch and signal #40
Reference in New Issue
Block a user
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?
Originally created by @Dadadah on GitHub (Feb 12, 2026).
Currently, when using this library, if you need to access the api via the client before logging in, the configuration is unset. This is dealt with in the web client by hard coding the configuration on client configuration.
It would be beneficial to have the config fetched asynchronously on client creation and then have a signal for when the configuration has finished loaded. This makes it where the client can see when a server is invite only before trying to login.