You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the gating function is evaluated once at module time, so once the JS bundle has been parsed and evaluated the choice of component stays static for the rest of the browser session.
97
+
Note que a função de gating é avaliada uma vez no tempo de módulo, então, assim que o bundle JS for analisado e avaliado, a escolha do componente permanece estática pelo resto da sessão do navegador.
98
98
99
99
---
100
100
101
-
## Troubleshooting {/*troubleshooting*/}
101
+
## Solução de problemas {/*troubleshooting*/}
102
102
103
-
### Feature flag not working {/*flag-not-working*/}
103
+
### Feature flag não está funcionando {/*flag-not-working*/}
104
104
105
-
Verify your flag module exports the correct function:
105
+
Verifique se o seu módulo de flag exporta a função correta:
106
106
107
107
```js
108
-
// ❌ Wrong: Default export
108
+
// ❌ Errado: Exportação padrão
109
109
exportdefaultfunctionshouldUseCompiler() {
110
110
returntrue;
111
111
}
112
112
113
-
// ✅ Correct: Named export matching importSpecifierName
113
+
// ✅ Correto: Exportação nomeada correspondendo a importSpecifierName
114
114
exportfunctionshouldUseCompiler() {
115
115
returntrue;
116
116
}
117
117
```
118
118
119
-
### Import errors {/*import-errors*/}
119
+
### Erros de importação {/*import-errors*/}
120
120
121
-
Ensure the source path is correct:
121
+
Certifique-se de que o caminho da origem está correto:
122
122
123
123
```js
124
-
// ❌ Wrong: Relative to babel.config.js
124
+
// ❌ Errado: Relativo a babel.config.js
125
125
{
126
126
source:'./src/flags',
127
127
importSpecifierName:'flag'
128
128
}
129
129
130
-
// ✅ Correct: Module resolution path
130
+
// ✅ Correto: Caminho de resolução do módulo
131
131
{
132
132
source:'@myapp/feature-flags',
133
133
importSpecifierName:'flag'
134
134
}
135
135
136
-
// ✅ Also correct: Absolute path from project root
136
+
// ✅ Também correto: Caminho absoluto a partir da raiz do projeto
0 commit comments