Flagsmith's 'useFlags' doesn't return actual cached flags when request failed
vik-buchinski opened this issue · comments
Victor commented
Steps to reproduce:
- open sandbox example
- make sure that flags are loaded and you see rendered 'single_brand.enabled -> true' and 'multi_brand.enabled -> true'
- open developer console -> 'Network' tab
- find 'https://api.flagsmith.com/api/v1/flags/' request and block it using 'Block request url' feature
- refresh rendered view in the sandbox using 'refresh' button
Actual behavior: when we reload the sandbox view, flagsmith sometimes loads flags with 'false' flags and sometimes with actual values from the cache.
Expected behavior: when we reload the sandbox view, flagsmith always loads flags with actual values from the cache.
Novak Zaballa commented
Hi @vik-buchinski , thank ou for bringing this to our attention. We will take a look a prioritize it in consequence.
Novak Zaballa commented
Hi @vik-buchinski, we already solved the problem with this PR #193