Welcome to the Flagship ReactJS SDK documentation!

The following documentation helps you to run Flagship on your ReactJS environment (client-side or server-side).

Wants to have a look at the GitHub repo? Link here.

Feel free to contact us if you have any questions regarding this documentation.

Release notes

Added

  • viteJs support

Updated

  • @flagship.io/js-sdk dependency to version 3.0.8

Fixed

  • flagsData property typo issue from FlagsData to flagsData

Updated

  • deprecated fields message

Added

  • slug property in flag.metadata

Changed

  • Now lookupVisitor and lookupHits methods will be called each time visitor.fetchFlags method is called
  • When the default flag value is "null", no type checking will be performed anymore

Updated

  • @flagship.io/js-sdk dependency on version 3.0.7

Added

  • react 18 support

Updated

  • @flagship.io/js-sdk dependency on version 3.0.5

Fixed

  • Batch hit length

updated

  • @flagship.io/js-sdk dependency on version 3.0.4

Added

  • The props visitorData can now be set to null on SDK initilization in order to set it later. for example after retrieving the current user's data from the database.

  • ReactJS and React-Native as SDK_LANGUAGE in x-sdk-client http header

changed

  • No SEGMENT hits will be sent when visitor context is empty

updated

  • @flagship.io/js-sdk dependency on version 3.0.3

Added

  • useFlagship().fetchFlags method
  • useFlagship().getFlag method
  • useFlagship().setConsent method
  • useFlagship().authenticate method
  • useFlagship().unauthenticate method
  • Flag class
  • FlagMetadata class
  • Managing visitor cache
  • SDK Status / Status changed callback.
  • Visitor consent.
  • Predefined context.
  • Custom log manager

Deprecated

  • useFlagship().synchronizeModifications method
  • useFlagship().getModification method
  • useFlagship().getModificationInfo method
  • useFlagship().activateModifications method

Changed

  • useFlagship().hit.send and useFlagship().hit.sendMultiple signature

removed

  • Props enableConsoleLogs of FlagshipProvider
  • Props activateNow of FlagshipProvider
  • Props enableSafeMode of FlagshipProvider
  • Props enableErrorLayout of FlagshipProvider
  • Props nodeEnv of FlagshipProvider

Fixed

  • authenticate and unauthenticate unhandle error

Added

  • react-18 support


What’s Next
Did this page help you?