Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

feat: adds localstorageprovider #361

Merged
merged 3 commits into from
Oct 5, 2022
Merged

feat: adds localstorageprovider #361

merged 3 commits into from
Oct 5, 2022

Conversation

bdougie
Copy link
Member

@bdougie bdougie commented Oct 4, 2022

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

this PR adds localStorage as a Context provider. It works as expected and caches data to prevent refetching the same content from the API on reload.

Related Tickets & Documents

fix #335

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Oct 4, 2022

βœ… Deploy Preview for hot-sauced-ui ready!

Name Link
πŸ”¨ Latest commit fcf7bfd
πŸ” Latest deploy log https://app.netlify.com/sites/hot-sauced-ui/deploys/633cd09b2b99220008087bd0
😎 Deploy Preview https://deploy-preview-361--hot-sauced-ui.netlify.app/
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@0-vortex 0-vortex self-requested a review October 4, 2022 23:19
@bdougie bdougie force-pushed the swr-local-provider branch from 5e23ca5 to 1fe0072 Compare October 5, 2022 00:26
@bdougie bdougie force-pushed the swr-local-provider branch from 1fe0072 to fcf7bfd Compare October 5, 2022 00:32
@bdougie bdougie merged commit f030796 into beta Oct 5, 2022
@bdougie bdougie deleted the swr-local-provider branch October 5, 2022 00:34
github-actions bot pushed a commit that referenced this pull request Oct 5, 2022
## [2.26.0-beta.1](v2.25.0...v2.26.0-beta.1) (2022-10-05)

### πŸ› Bug Fixes

* rename everything from Post to Repo  ([#356](#356)) ([0267009](0267009)), closes [#313](#313)

### πŸ• Features

* added custom tailwind variables and removed anti patterns ([#337](#337)) ([549e676](549e676)), closes [#315](#315)
* adds localstorageprovider ([#361](#361)) ([f030796](f030796)), closes [#335](#335)
@github-actions
Copy link

github-actions bot commented Oct 5, 2022

πŸŽ‰ This PR is included in version 2.26.0-beta.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

0-vortex added a commit that referenced this pull request Oct 18, 2022
* origin/beta:
  chore(patch): release 2.26.0-beta.5 on beta channel [skip ci]
  fix: add menu drop to generate token on console (#367)
  chore(patch): release 2.26.0-beta.4 on beta channel [skip ci]
  fix: remove swr local storage cache provider (#371)
  chore(minor): release 2.26.0-beta.3 on beta channel [skip ci]
  feat: Update SVG favicon (#369)
  chore(minor): release 2.26.0-beta.2 on beta channel [skip ci]
  feat: New Favicon Replacement (#363)
  chore(minor): release 2.26.0-beta.1 on beta channel [skip ci]
  feat: adds localstorageprovider (#361)
  chore(patch): release 2.25.0-beta.9 on beta channel [skip ci]
  fix: rename everything from Post to Repo  (#356)
  chore(minor): release 2.25.0-beta.8 on beta channel [skip ci]
  feat: added custom tailwind variables and removed anti patterns (#337)
github-actions bot pushed a commit that referenced this pull request Oct 18, 2022
## [2.26.0-alpha.3](v2.26.0-alpha.2...v2.26.0-alpha.3) (2022-10-18)

### πŸ• Features

* added custom tailwind variables and removed anti patterns ([#337](#337)) ([549e676](549e676)), closes [#315](#315)
* adds localstorageprovider ([#361](#361)) ([f030796](f030796)), closes [#335](#335)
* New Favicon Replacement ([#363](#363)) ([bb680a6](bb680a6)), closes [#362](#362)
* Update SVG favicon ([#369](#369)) ([bf78ca0](bf78ca0)), closes [#368](#368)

### πŸ› Bug Fixes

* add menu drop to generate token on console ([#367](#367)) ([dce7249](dce7249)), closes [#364](#364)
* correct upstream fast forward ([2897584](2897584))
* remove swr local storage cache provider ([#371](#371)) ([334081c](334081c)), closes [#365](#365)
* rename everything from Post to Repo  ([#356](#356)) ([0267009](0267009)), closes [#313](#313)
@github-actions
Copy link

πŸŽ‰ This PR is included in version 2.26.0-alpha.3 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Oct 28, 2022
## [2.26.0](v2.25.0...v2.26.0) (2022-10-28)

### πŸ› Bug Fixes

* add menu drop to generate token on console ([#367](#367)) ([dce7249](dce7249)), closes [#364](#364)
* add open a bug link when repo loading fails ([#349](#349)) ([50efbc8](50efbc8)), closes [#307](#307)
* alpha build ([#360](#360)) ([06a5ef2](06a5ef2))
* correct [#321](#321) changes ([0080521](0080521))
* correct alpha mistakes ([#381](#381)) ([f917ac2](f917ac2))
* correct latest alpha ([6e82aa6](6e82aa6))
* correct merge conflicts from bad heads ([566f753](566f753))
* correct upstream fast forward ([2897584](2897584))
* remove swr local storage cache provider ([#371](#371)) ([334081c](334081c)), closes [#365](#365)
* rename everything from Post to Repo  ([#356](#356)) ([0267009](0267009)), closes [#313](#313)
* trigger build on alpha ([#359](#359)) ([dbbbea5](dbbbea5))

### πŸ• Features

* add loading skeleton for the repoWrap component ([#374](#374)) ([058beab](058beab)), closes [#357](#357)
* add myVotes filter for repo list ([#384](#384)) ([e0e70ed](e0e70ed)), closes [#334](#334)
* added custom tailwind variables and removed anti patterns ([#337](#337)) ([549e676](549e676)), closes [#315](#315)
* adds localstorageprovider ([#361](#361)) ([f030796](f030796)), closes [#335](#335)
* auth/session API call temporary at Navbar component. ([#379](#379)) ([841b635](841b635)), closes [#366](#366)
* display repos' contributors avatars ([#383](#383)) ([ecebb1e](ecebb1e)), closes [#333](#333)
* **api:** leverage the api over sdk ([#321](#321)) ([a471317](a471317)), closes [#312](#312) [#312](#312) [#312](#312)
* make recent the default filter ([#377](#377)) ([3ace891](3ace891)), closes [#376](#376) [#380](#380)
* new favicon ([#389](#389)) ([67ab18b](67ab18b))
* New Favicon Replacement ([#363](#363)) ([bb680a6](bb680a6)), closes [#362](#362)
* Update SVG favicon ([#369](#369)) ([bf78ca0](bf78ca0)), closes [#368](#368)
@github-actions
Copy link

πŸŽ‰ This PR is included in version 2.26.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: add cache provider to SWR
1 participant