Use getSuggestions endpoint behind the gate (#3499)
* Move suggested follows out of the component * Add new suggestions implementation * Put new endpoint behind the gate * Make bottom less weird
This commit is contained in:
parent
e3e8f10538
commit
bedb0c3fbd
3 changed files with 66 additions and 5 deletions
|
|
@ -82,7 +82,10 @@ export function useGate(gateName: Gate): boolean {
|
|||
// This should not happen because of waitForInitialization={true}.
|
||||
console.error('Did not expected isLoading to ever be true.')
|
||||
}
|
||||
return value
|
||||
// This shouldn't technically be necessary but let's get a strong
|
||||
// guarantee that a gate value can never change while mounted.
|
||||
const [initialValue] = React.useState(value)
|
||||
return initialValue
|
||||
}
|
||||
|
||||
function toStatsigUser(did: string | undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue