docs: import getPosts in fetching-data streaming example
The streaming-with-`use` example calls `getPosts()` in both switchers but
never imports it. Add the import so the example is self-contained, matching
the convention used elsewhere in the getting-started guides.