-
Notifications
You must be signed in to change notification settings - Fork 7
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
docs: update sdk section #49
Conversation
add timeout and pooling information
add timeout and pooling information
add timeout and pooling information
add timeout and pooling information
✅ Deploy Preview for bucketeer-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
```dart showLineNumbers | ||
/// It will unlock without waiting until the fetching variation process finishes | ||
int timeout = 1000; | ||
int timeout = 5000; | ||
|
||
await BKTClient.initialize(config: config, user: user, timeoutMillis: timeout); | ||
final client = BKTClient.instance; | ||
if (result.isSuccess) { | ||
final client = BKTClient.instance; | ||
if (showNewFeature) { | ||
/// The Application code to show the new feature | ||
} else { | ||
/// The code to run if the feature is off | ||
} | ||
} else { | ||
/// Handle the error when there is no cache or the cache is not updated | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cre8ivejp, the original code didn't use a conditional to treat timeout errors. I tried to adapt the code from the update section. However, I don't know if it's correct.
change tables and remove links to nodejs and go pages.
docs/sdk/index.mdx
Outdated
<td><CheckSVG/></td> | ||
</tr> | ||
<tr> | ||
<td>Clone</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no Clone
feature.
Please remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. However, in previous comments, you mentioned a Clone feature that Go SDK has. I probably misunderstand. But what was that about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this comment, I mentioned Close
.
#49 (comment)
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
This category contains topics explaining how to configure Bucketeer's Flutter SDK. | ||
|
||
:::caution Flutter SDK Version (Beta) | ||
|
||
The Flutter JS SDK is currently in its Beta stage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Flutter JS SDK is currently in its Beta stage. | |
The Flutter SDK is currently in its Beta stage. |
|
||
The Flutter JS SDK is currently in its Beta stage. | ||
|
||
If you find any issues or have suggestions for improvement, feel free to open an [issue](https://github.com/bucketeer-io/flutter-client-sdk/issues). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you find any issues or have suggestions for improvement, feel free to open an [issue](https://github.com/bucketeer-io/flutter-client-sdk/issues). | |
If you find any issues or have suggestions for improvement, feel free to open an [issue](https://github.com/bucketeer-io/flutter-client-sdk/issues). | |
The SDK doesn't support Flutter Web yet. All contributions are welcome! |
|
||
await BKTClient.initialize(config: config, user: user, timeoutMillis: timeout); | ||
final client = BKTClient.instance; | ||
final result = await BKTClient.initialize(config: config, user: user, timeoutMillis: timeout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace the whole code block with the following.
final result = await BKTClient.initialize(config: config, user: user, timeoutMillis: timeout); | |
/// It will unlock without waiting until the fetching variation process finishes | |
const int timeout = 5000; | |
final result = await BKTClient.initialize(config: config, user: user, timeoutMillis: timeout); | |
if (result.isSuccess) { | |
const client = BKTClient.instance; | |
if (showNewFeature) { | |
/// The Application code to show the new feature | |
} else { | |
/// The code to run if the feature is off | |
} | |
} else { | |
/// Handle the error when there is no cache or the cache is not updated | |
} |
@heitortessaro, I left a few comments. Please take a look when you have time. |
Closing this in favor of #50 |
No description provided.