exile-center / better-trading

QoL improvements for the official PathOfExile trading site.
30 stars 5 forks source link

feat: update trade search page titles based on active trade #112

Closed dbjorge closed 1 year ago

dbjorge commented 1 year ago

This PR implements the feature suggested in #71, auto-updating the page title for trade searches to include:

screenshot demonstrating above features

It implements this by:

This isn't super efficient; it refetches every trade every time the trade location changes or any bookmark changes. My expectation is that this should be efficient-enough, since both of those events should only happen in response to direct user interaction, but it might be preferable to move the in-memory state of trades out of the BookmarksFolder component and into a service (either the Bookmarks service or a new one) to avoid the round trips to storage...

closes #71