正在加载视频...

视频加载失败

Let's build an email client with Next.js and Postgres ✉️ ✅ Navigate between routes in a column layout while maintaining scroll position (layouts support) ✅ Submit forms without JavaScript enabled (progressive enhancement) ✅ Navigate between routes extremely fast (prefetching and caching) ✅ Retain your UI position on reload (URL state)

197,036 次观看 • 2 年前 •via X (Twitter)

10 条评论

Lee Robinson 的头像
Lee Robinson2 年前

Building this input with React Aria Components was 😍 h/t @devongovett

Lee Robinson 的头像
Lee Robinson2 年前

Keeping the scroll position was as easy as moving the component to the `layout`. This was much more difficult in the Pages Router, and now built into the App Router.

Lee Robinson 的头像
Lee Robinson2 年前

Here's the code if you wanna dig around. Includes the Postgres schema / seed data information.

Jacob 的头像
Jacob2 年前

Very cool! Curious how y'all are thinking about invalidating the router cache for more dynamic use cases like email apps, social, productivity tools, etc… Specifically my understanding: 1. Anytime a user navigates to a new page, the full route is cached in client for 30s (pretty long time for dynamic apps like email clients) 2. There doesn't seem to be a way to invalidate this cache from an action not invoked by the current user (for example a server event) 3. There is no way to opt out of the router cache all together or change the cache duration. Put another way (example): If a user clicks into a full screen email experience, and while they're viewing this email, they receive another email… When the user navigates back to their inbox (within 30s), it will be stale (wont show the new email bc of the router cache). In this case, should we be calling router.refresh() on every nav event? Seems mb heavy after the change to drop user's entire router cache on every refresh call. Maybe there's a better way to be thinking about it all together? Would love any guidance or examples! would love to figure out some sort of swr like experience with rsc here 😅

Alex Sidorenko 的头像
Alex Sidorenko2 年前

@nextjs Nice! Cool trick with command + enter submit. And easy to add as a generic option for textarea UI component. Especially with shadcn.

Abdulhamit Akaslan 的头像
Abdulhamit Akaslan2 年前

@nextjs Nice video but the zoom efect and mouse is very distracting on the video I think.

Julian 的头像
Julian2 年前

@nextjs @screenstudio I presume

Richard Poelderl 的头像
Richard Poelderl2 年前

@nextjs Love the cmd + enter keydown use case and the feature co location in the app dir

Michael Amore 的头像
Michael Amore2 年前

@nextjs Did you have a YouTube link?

Lee Robinson 的头像
Lee Robinson2 年前

@nextjs Here you go!

相关视频

If you don't have an automated trading system, I can set one up for you in less than 3 days! Outperform the market with: - Higher Win Rates - Lightning Fast Execution - Fully Automated Trading System Schedule a call using the link below: Discover the future of trading with our AI-powered "smart bots" that can deliver an impressive win rate of up to 95%. Say goodbye to the tedious task of monitoring charts and wasting precious time. 🚀 Why Choose Us? ✅ Quantitatively Designed Trading Algortihms: Our algorithms are crafted with precision, ensuring robust performance and consistency. ✅ Engineered "Smart Bots": Experience lightning-fast trades with our state-of-the-art smart bots that adapt and learn. ✅ Fully Automated Trading System: Our system works around the clock, executing your trading strategies flawlessly, without the need for manual intervention. ✅ Powerfully Designed Algorithms: Our cutting-edge algorithms are the backbone of our trading systems, engineered to maximize your trading outcomes. ✅ Built-In Risk Management Strategies: Safeguard your investments with integrated risk management protocols designed to minimize losses and protect gains. ✅ Use #BTC as collateral to compound returns while HODLing, effectively earning a yield 🌟 Exclusive Benefits for Our Clients ✅ Tailored Solutions for Every Trader: Whether you’re a novice or a seasoned trader, our platform is designed to meet your specific trading needs and preferences. ✅ Supportive Community: Join our network of traders who share insights, strategies, and success stories. Build connections, make friends, and grow your trading knowledge. Schedule a call using the link below:

Minotaur Trading Systems

46,230 次观看 • 1 年前

CSS Tip! 🍬 You can create a CSS-only sticky CTA using position: sticky or scroll-driven animations 🤙 .cta { position: sticky; margin-top: 110vh; bottom: 2rem; /* 👈 Stick! */ } This is one way 👀 This first way relies on you setting a layout on the body and putting the CTA in a zero-space part of the layout body { display: grid; grid-template-columns: auto 0; } The children of the body are an element with your content and then the CTA. You could also use display:flex too. .content { flex: 1 0 100%; } .cta { place-self: end; } As you scroll the body, the CTA comes into view and sticks in position 🙌 That's one way. If you want to take it further and do something like flip between showing or not, maybe scale it up, or add some special easing, etc. an animation is another way 📜 First, change the styles for your CTA. Note the translate property that's powered by a custom property .cta { position: fixed; bottom: 2rem; right: 2rem; translate: 0 calc(20vh - (var(--show) * 20vh)); transition: translate 0.875s var(--elastic); } Next you need a custom property that you're going to animate @​property --show { inherits: true; initial-value: 0; syntax: ' '; } Lastly, you animate this value on the body. As the property value changes, the value will trickle down to the CTA @​supports (animation-timeline: scroll()) { body { animation: show-cta both steps(1); animation-timeline: scroll(root); animation-range: 0 10vh; } @​keyframes show-cta { to { --show: 1; } } } Using @​supports you can use this as a progressive enhancement. If scroll-driven animations are supported, use them. Otherwise fallback to using position: sticky 🤙 That's it! As always, any questions or requests, hit me up! 🙏 CodePen.IO link below! 👇

jhey ʕ•ᴥ•ʔ

133,020 次观看 • 2 年前

🚀 Introducing Movevent: Built for the Community, by the Community! The Movement ecosystem is growing rapidly, and keeping up with AMAs, Discord games, NFT drops, and new projects can be overwhelming. Movevent is here to streamline events, enhance engagement, and connect the community like never before! 🔥 What We Offer: ✅ A Unified Event Calendar – Never miss an AMA, Twitter Space, or Discord game again. Organizers will coordinate their schedules to prevent overlaps! ✅ Custom User Profiles – Track your favorite events and games, build your personalized calendar, and stay updated. ✅ NFT & Project Hub – Explore Movement NFTs, check real-time floor prices, and discover new projects, all in one place. ✅ Comprehensive Project Directory – A dedicated section explaining every project in the Movement ecosystem, their mission, and how they contribute to the community. ✅ Direct Access to Official Links – Easily find and verify official websites, social media accounts, and key resources for all Movement projects, ensuring you always have the right information. ✅ IRL Events - Explore past and upcoming local meetups and events. Link for organizing your own events. ✅ Potassium Pass NFT – A soulbound NFT that unlocks exclusive events, special rewards, and VIP Q&A sessions with the Movement team (details coming soon). ✅ Innovation Hub – A dedicated space where community members can propose and vote on new ideas to shape the future of the ecosystem. 🎯 Why Movevent? 🔹 For Users – Easily discover and join events, track rewards, access key ecosystem updates, and find all official project links in one place. 🔹 For Projects – Gain visibility, avoid scheduling conflicts, and connect with a highly engaged community. 🔹 For the Ecosystem – More participation, better coordination, and stronger connections between projects and users. 🚀 Movevent is built for the community, by the community! With your support, we aim to launch a mobile app next, offering real-time event reminders and engagement reports. Join us as we build the future of Movement together! 🌍🔥

Movevent

23,562 次观看 • 1 年前

Private transactions between wallets now possible on Solana using ZERAs Private Cash Addresses. A closer look at last week’s MVP drop: Private P2P. Most "privacy" on Solana still falls back to withdraw-to-address (recipient + metadata leaks) or multi-step send flows that leave trails. Our P2P is different: one atomic in-pool transaction, the sender’s note is nullified, and two new encrypted notes are created, all inside the vault. No stepping out. No re-deposit choreography. Why it’s so hard to deanonymize: ✅ Your Private Cash Address has zero link to your Solana wallet: it’s an X25519 keypair derived from a wallet signature, and the public key becomes your private address. ✅ Notes are encrypted with NaCl box using a fresh ephemeral key every send, meaning even two payments to the same person looks unrelated. ✅ Recipients discover incoming notes via trial decryption, the chain never learns "who owns what." While we have immense respect for those building privacy on Solana, we are proud to be the first to achieve one-shot, in-pool P2P with full privacy. To our knowledge, this remains an industry first. This is the difference between hiding balances inside a pool and moving value privately between people. Note: Right now, the sender’s wallet still signs the private transaction, so on-chain you can see that a wallet performed a P2P action, but the amount and recipient remain private. The upcoming P2P Relayer removes that footprint too, completing the "cash-style" flow with no on-chain sender trace. What’s coming next: ✅ More assets: At least SOL + ZERA alongside USDC. ✅ P2P Relayer: A decentralized signing/relaying network that can submit transactions for you — enabling withdrawals with minimal linkage after the initial deposit, and removing the sender’s on-chain P2P footprint. Try it out in the ZERA Dashboard below ⤵️

ZERA

36,581 次观看 • 6 个月前

⚙️ Running & Scaling a Business? The SMBash Operator Track is for You! ⚙️ Buying a business is one thing—running it efficiently and growing it profitably is another. At SMBash 2025, the Operator Track is packed with real-world insights from experienced SMB leaders to help you navigate the challenges of running and optimizing your business. 🔥 Operator Track Highlights: ✅ HoldCos & Structuring for Long-Term Growth – Chase Murdock & Palmer Higgins share insights on holding company strategy. Chase Murdock ✅ The Role of a CEO – Chris Koerner on leadership, decision-making, and scaling your team. Chris Koerner ✅ KPIs & Performance Tracking – Kaustubh Deo breaks down the numbers that drive business success. Kaustubh Deo - Guesswork Investing ✅ Deals Gone Wrong – Denisse & Evelin Montenegro share the hard lessons from challenging acquisitions. Denisse Montenegro Evelin Montenegro ✅ The Intentional Owner LIVE - Kaustubh Deo & Sam Rosati take the stage with their brand new podcast. Come watch as they speak with business owners who have been in the trenches of the real work of running a small business! ✅ Jeff Driskel - takes the stage again. This year, with more experience under his belt, he will be joining as a panelist. Jeff Driskel ✅ Insurance Essentials – Josh & Andy break down how to protect your business the right way. Josh Richman Andy Harbut 💡 Not an operator yet? No problem! All attendees can join ANY session—whether you're running a business or still searching for one. 📅 April 2-4, Dallas, TX 🎟️ Tickets are selling fast—secure yours today by heading to our website!

SMBash

14,583 次观看 • 1 年前

How to Trade Crypto Perpetuals on Grvt | Step-by-Step Tutorial 📲 Get Started Now: 🔗 🎯 Complete your KYC to unlock your welcome rewards 👥 Invite friends to earn even more through the GRVT Reward Portal 📅 Get ready for options, spot, and mobile app trading coming soon! In this hands-on tutorial, we walk you through exactly how to trade crypto perpetual contracts on GRVT, one of the most advanced hybrid exchanges in the market. You’ll learn everything from creating an account to executing your first leveraged trade — all while staying 100% in control of your funds. Whether you're a seasoned trader or just getting started, GRVT's Web2-friendly UX and Web3 security model makes trading seamless, self-custodial, and safe. 🧭 What You’ll Learn in This Tutorial: ✅ How to create your GRVT account and complete KYC ✅ Setting up the GRVT Wallet or connecting MetaMask ✅ Depositing USDT via Ethereum, Arbitrum, or on-ramp ✅ Navigating the Perpetuals dashboard ✅ Setting leverage, margin mode - isolated vs cross ✅ Placing long or short trades with live order book ✅ Monitoring your open position, PNL, and liquidation levels ✅ Withdrawing profits safely via smart contract-secured flows ✅ BONUS: How to earn GRVT points while you trade 💼 Why Grvt ? 🔐 Full self-custody — GRVT never holds your keys ⚡ Off-chain matching + on-chain settlement with zkSync 📉 Gasless trades with 10ms latency 📊 Advanced margin engine and role-based access 🎁 ZK tokens when you complete KYC 📈 $3.2B+ in liquidity at mainnet backed by top market makers DISCLAIMER: The content on our site is for informational purposes only. Readers, viewers and listeners should not construe any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained on our site constitutes a solicitation, recommendation, endorsement, or offer by Decentralised News to buy or sell any securities or other financial instruments in any jurisdiction in which such solicitation or offer would be unlawful under the laws of such jurisdiction. #GRVT #PerpetualTrading #CryptoTutorial #DeFi #HowToTrade #CryptoPerps #HybridExchange #zkSync #Web3Wallet #OPUSDT #CryptoLeverage #Crypto2025 #SelfCustody #NotFinancialAdvice #DecentralisedNews #Blockchain #Metaverse #PlaytoEarn #CryptoInvestments #Bitcoin #BuyBitcoin #TokenizedAssets #DecentralisedFinance #Crypto #DigitalAssets #EarnCrypto #EarnBitcoin #Cryptocurrencies #DeFi #CryptoWallets #YieldFarming #Stocks #TokenizedStocks #CryptoNews #BitcoinNews #BestCryptoEducationChannel #CryptoEducation

Decentralised News

27,152 次观看 • 1 年前