Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: update version 2 page custom render api code example #175

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

AnishDe12020
Copy link
Contributor

The toast method was not imported but required for the toast.dismiss() function. I have updated the example code to import the method.

The `toast` method was not imported but required for the `toast.dismiss()` function. I have updated the example code to import the method.
@vercel
Copy link

vercel bot commented Apr 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-hot-toast ✅ Ready (Inspect) Visit Preview Apr 28, 2022 at 8:54AM (UTC)

@timolins
Copy link
Owner

Thanks!

@timolins timolins merged commit 719ae00 into timolins:main Apr 28, 2022
@AnishDe12020 AnishDe12020 deleted the patch-1 branch April 28, 2022 14:13
kodiakhq bot referenced this pull request in cloudquery/cloudquery Sep 1, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [react-hot-toast](https://togithub.com/timolins/react-hot-toast) | dependencies | minor | [`2.1.1` -> `2.3.0`](https://renovatebot.com/diffs/npm/react-hot-toast/2.1.1/2.3.0) |

---

### Release Notes

<details>
<summary>timolins/react-hot-toast</summary>

### [`v2.3.0`](https://togithub.com/timolins/react-hot-toast/releases/tag/v2.3.0)

[Compare Source](https://togithub.com/timolins/react-hot-toast/compare/v2.2.0...v2.3.0)

#### Better bundle setup

This release focuses on build and bundle improvements (faster, lighter & better).

-   Expose `react-hot-toast/headless` - for headless environments like react-native
-   Bundle is now 15% (5% gzipped) smaller
-   Bonus: 3x faster dev builds

##### What's Changed

-   Improve dev setup (`pnpm`, update deps) by [@&#8203;timolins](https://togithub.com/timolins) in [https://github.com/timolins/react-hot-toast/pull/203](https://togithub.com/timolins/react-hot-toast/pull/203)
-   New bundler setup (tsup instead of tsdx) with `react-hot-toast/headless` by [@&#8203;timolins](https://togithub.com/timolins) in [https://github.com/timolins/react-hot-toast/pull/205](https://togithub.com/timolins/react-hot-toast/pull/205)
-   Website Example: Make snippet consistent with action by [@&#8203;diksown](https://togithub.com/diksown) in [https://github.com/timolins/react-hot-toast/pull/196](https://togithub.com/timolins/react-hot-toast/pull/196)
-   Docs: update version 2 page custom render api code example  by [@&#8203;AnishDe12020](https://togithub.com/AnishDe12020) in [https://github.com/timolins/react-hot-toast/pull/175](https://togithub.com/timolins/react-hot-toast/pull/175)
-   fix: csstype peer dep by [@&#8203;eeston](https://togithub.com/eeston) in [https://github.com/timolins/react-hot-toast/pull/183](https://togithub.com/timolins/react-hot-toast/pull/183)
-   Site Docs: 'one' => 'once' :) by [@&#8203;cbserra](https://togithub.com/cbserra) in [https://github.com/timolins/react-hot-toast/pull/201](https://togithub.com/timolins/react-hot-toast/pull/201)
-   Website Example: Make snippet consistent with action by [@&#8203;diksown](https://togithub.com/diksown) in [https://github.com/timolins/react-hot-toast/pull/196](https://togithub.com/timolins/react-hot-toast/pull/196)

##### New Contributors

-   [@&#8203;AnishDe12020](https://togithub.com/AnishDe12020) made their first contribution in [https://github.com/timolins/react-hot-toast/pull/175](https://togithub.com/timolins/react-hot-toast/pull/175)
-   [@&#8203;eeston](https://togithub.com/eeston) made their first contribution in [https://github.com/timolins/react-hot-toast/pull/183](https://togithub.com/timolins/react-hot-toast/pull/183)
-   [@&#8203;cbserra](https://togithub.com/cbserra) made their first contribution in [https://github.com/timolins/react-hot-toast/pull/201](https://togithub.com/timolins/react-hot-toast/pull/201)
-   [@&#8203;diksown](https://togithub.com/diksown) made their first contribution in [https://github.com/timolins/react-hot-toast/pull/196](https://togithub.com/timolins/react-hot-toast/pull/196)

**Full Changelog**: timolins/react-hot-toast@v2.2.0...v2.3.0

### [`v2.2.0`](https://togithub.com/timolins/react-hot-toast/releases/tag/v2.2.0)

[Compare Source](https://togithub.com/timolins/react-hot-toast/compare/v2.1.1...v2.2.0)

##### Changes

-   Expose core types  [`70dbbb2`](https://togithub.com/timolins/react-hot-toast/commit/70dbbb2)
-   Update goober  [`1563b56`](https://togithub.com/timolins/react-hot-toast/commit/1563b56)
-   Preserve line breaks in toast body Closes [#&#8203;144](https://togithub.com/timolins/react-hot-toast/issues/144)  [`f981e45`](https://togithub.com/timolins/react-hot-toast/commit/f981e45)

##### Docs

-   Fix example in docs  [`09ded7f`](https://togithub.com/timolins/react-hot-toast/commit/09ded7f)
-   Fix typo  [`379cf3e`](https://togithub.com/timolins/react-hot-toast/commit/379cf3e)
-   Add missing import to example  [`fbb2612`](https://togithub.com/timolins/react-hot-toast/commit/fbb2612)
-   Fix typo in Toaster page  [`c93328a`](https://togithub.com/timolins/react-hot-toast/commit/c93328a)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xODUuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE4NS4zIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants