Skip to content

Commit 1c0b65a

Browse files
Polishing
1 parent 6bf6b3c commit 1c0b65a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
7878
7979
- name: Store assets
80-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/add_SplitFactoryProvider')
80+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development')
8181
uses: actions/upload-artifact@v3
8282
with:
8383
name: assets
@@ -88,7 +88,7 @@ jobs:
8888
name: Upload assets
8989
runs-on: ubuntu-latest
9090
needs: build
91-
if: github.event_name == 'push' && github.ref == 'refs/heads/add_SplitFactoryProvider'
91+
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
9292
strategy:
9393
matrix:
9494
environment:

src/SplitFactoryProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DEFAULT_UPDATE_OPTIONS } from './useSplitClient';
1212
* since they access the Split Context and its elements (factory, clients, etc).
1313
*
1414
* NOTE: Either pass a factory instance or a config object. If both are passed, the config object will be ignored.
15-
* Pass a reference to the config or factory object rather than a new instance on each render, to avoid unnecessary props changes and SDK reinitializations.
15+
* Pass the same reference to the config or factory object rather than a new instance on each render, to avoid unnecessary props changes and SDK reinitializations.
1616
*
1717
* @see {@link https://help.split.io/hc/en-us/articles/360038825091-React-SDK#2-instantiate-the-sdk-and-create-a-new-split-client}
1818
*/

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const CONTROL_WITH_CONFIG: SplitIO.TreatmentWithConfig = {
1616
// Warning and error messages
1717
export const WARN_SF_CONFIG_AND_FACTORY: string = '[WARN] Both a config and factory props were provided to SplitFactoryProvider. Config prop will be ignored.';
1818

19-
// @TODO remove with SplitFactory component in next major version
19+
// @TODO remove with SplitFactory component in next major version. SplitFactoryProvider can accept no props and eventually only an initialState
2020
export const ERROR_SF_NO_CONFIG_AND_FACTORY: string = '[ERROR] SplitFactory must receive either a Split config or a Split factory as props.';
2121

2222
export const EXCEPTION_NO_REACT_OR_CREATECONTEXT: string = 'React library is not available or its version is not supported. Check that it is properly installed or imported. Split SDK requires version 16.3.0+ of React.';

0 commit comments

Comments
 (0)