8 Commits

Author SHA1 Message Date
Hugues Pouillot
0e57e7ee7f chore: update react docs (#13441) 2025-10-29 19:48:10 +01:00
Vincent (Wen Yu) Ge
4b078968cb Clarify useFeatureFlagPayload hook behavior (#12089)
Co-authored-by: Luke Belton <58511679+luke-belton@users.noreply.github.com>
2025-07-07 15:37:07 -04:00
Robbie
699908a3b7 docs: Add posthog-js defaults to snippet examples (#11627)
* Add posthog-js defaults to snippet examples

* Add defaults to install-web too

* Add some more defaults

* feat: Add `<ph_posthog_js_defaults>` everywhere

Everywhere where we're initializing `<ph_project_api_key>` now also initializes `<ph_posthog_js_defaults>`. A follow-up pass is needed to update `pageview` docs letting people know we're tracking these automatically now

* refactor(): Remove `ph_posthog_js_defaults` where we're not initing lib from beggining

We'll only include the `defaults` suggestion in places where we're explaining HOW we initialize posthog. When we're talking about a non-correlated config, then we'll omit it. The same applies to `api_host`

* refactor: Stop using `history_change` in most places

Rather than suggesting `history_change`, let's instead suggest using our new `defaults` feature

* add a space

* change next.js note

* Ian's fixes

---------

Co-authored-by: Rafa Audibert <rafael@posthog.com>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2025-05-31 11:49:02 +02:00
Dylan Martin
0241e21896 add error handling to feature flag SDK docs (#9378) 2024-09-20 14:02:08 -04:00
Ben White
54c4f2f198 feat: New api hosts (#7996) 2024-04-22 13:08:09 +02:00
Neil Kakkar
c9ee56e729 Ruby add flag timeouts (#8058)
* Ruby add flag timeouts

* Apply suggestions from code review

* lior: add request timeouts to other docs

---------

Co-authored-by: Lior <lneuner@gmail.com>
2024-03-18 11:58:47 +00:00
Dmitrii Kartashev
19724d81b6 Better React in a React example (#7037)
* Update feature-flags-code-react.mdx

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2023-10-27 09:14:01 +00:00
Lior539
8a3027b246 [Getting started][Feature flags] Add installation page (#6457)
* Add feature flags installation

Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

fix rust import

[Getting started][Feature flags] Add how to create feature flags page (#6464)

* How to create feature flags

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

[Getting started][Feature flags] Add "add your code" page  (#6502)

* progress - backend code and mobiel code

* add react and react native

* add web

* added API code

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* tweaks

* add sendFeatureFalgs

* [Getting started][Feature flags] Add local evaluation page (#6521)

* Add local evaluation

* tweaks

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* update group properties

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* [Getting started][Feature flags] Add client side bootstrapping page (#6522)

* Add client side bootstrapping

* Apply suggestions from code review

suggestions

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

---------

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

delete unused pages + clean up (#6538)

[Getting started][Feature flags] Add how to test feature flags (#6547)

* delete unused pages + clean up

* add how to test your feature flag

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* comments

* [Getting started][Feature flags] Update FAQ (#6563)

* Update Feature Flag FAQ - WIP

* tweak

* add advanced_disable_feature_flags_on_first_load

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* Neil's suggestion

* [Getting started][Feature flags] Add cohort expansion, getAllFlags, and overriding server properties (#6561)

* add cohort expansion, getall flags

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Apply suggestions from code review

* Ians suggestion

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

[Getting started][Feature flags] Clean up SDK docs (#6562)

* clean up sdk docs

* Neil suggestion

* Clean up - Rename manual pages to installation and add free/partial to feature flags (#6564)

* add whats free or not. Rename manual to installation

* no message

* andy's comments
2023-08-23 12:49:02 +00:00