David Lechner ee850dec71 activities: use sessionStorage for selected tab
The useLocalStorage hook synchronizes state between windows. In the
case of the activities tabs, we don't want this state synchronized,
otherwise changing a tab in one window would change the tab in all
open windows.

Instead, we can use sessionStorage so that the state persists when
refreshing or duplicating a browser tab. Local storage is still used
as the default value so that any new window that is opened will use
the last selected state.

Issue: https://github.com/pybricks/support/issues/807
2022-12-06 15:38:58 -06:00
2022-06-02 19:09:07 -05:00
2022-11-18 19:28:00 -06:00
2022-09-09 11:37:37 -05:00
2021-02-01 13:02:06 -06:00
2021-01-08 13:09:14 -06:00
2022-11-23 17:20:45 -06:00
2022-03-14 15:15:29 -05:00
2022-03-14 15:15:29 -05:00
2020-04-08 19:23:19 -05:00
2022-11-18 19:28:00 -06:00
2022-09-09 11:37:37 -05:00
2022-06-03 10:25:05 -05:00

CI test status codecov

pybricks-code

A Web App for programming LEGO® Powered Up smart hubs using Pybricks MicroPython.

Try it at https://code.pybricks.com or the latest updates https://beta.pybricks.com.

screenshot

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

For more details, see the file CONTRIBUTING.md.


LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.
S
Description
Web IDE for Pybricks
https://code.pybricks.com/
Readme MIT
52 MiB
Languages
TypeScript 90%
JavaScript 7.6%
SCSS 2.1%
HTML 0.2%
Python 0.1%