Commit 142da36
authored
fix: Ensure FDv2 waits for network results instead of cached results. (#1397)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Low Risk**
> Single-path behavior change in browser identify options; aligns with
documented browser-only network semantics and does not touch auth or
persistence.
>
> **Overview**
> The browser client’s **`identifyResult`** path now always passes
**`waitForNetworkResults: true`** into the shared identify flow so FDv2
**identify** completes on fresh network flag data instead of settling on
cached results.
>
> The identify options object is typed as **`LDBaseIdentifyOptions`**,
and when **`sheddable`** is already provided the code copies options
with a spread (same as the default branch) before setting
**`waitForNetworkResults`**.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4f086c7. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 2f73d8c commit 142da36
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments